Encoder
ENC Position Monitor
Description

The ENC Position Monitor function block scales the current 64-bit value in the associated block to a 16-bit analog value which may be used with other signal processing function blocks to implement the desired position control algorithm. The Encoder Revs and Scaler parameters are combined to create a 32-bit scaling divisor.

After scaling, the Output of this function block may used with other signal processing function blocks to implement the desired position control algorithm. If Encoder Revs and Scaler are left at their default values of 1, the Output will be 100.00% for one encoder revolution.

The ENC Position Monitor function block MUST be associated with a position-type function block. If not, an Association Warning will be displayed by the System function block.

Availability
  • Available only in the dw2xx series products
  • Requires library: Encoder Control (option -11)
  • Requires: Single or Dual Encoder
  • Firmware versions 0x2008 and later
savvy-SFD Graphic encPosMonitor
Graphic with Parameters encPosMonitor

Parameters

ENC Position Internal Parameter, Read-write, Function Block Association (signed 16-bit integer)

This parameter block may be associated with the following position control function blocks:

  • ENC# Cyclic Position
    When selected, the block's Output reflects the scaled position with respect to the Cycle Zero location

  • ENC Indexed Position
    When selected, the block's Output reflects the scaled position with respect to the currently selected Index. By default, the Position Error output of the ENC Indexed Position function block is scaled by the Cycle Length. Use the scaling parameters to provide more resolution as you approach the currently selected Index position

  • ENC Position Point
    When selected, the block's Output reflects the scaled position with respect to the Desired Position. By default, the Position Error output of the ENC Position Point function block is scaled by the associated ENC# Cyclic Position or ENC# Linear Position function blocks. Use the scaling parameters to provide more resolution as you approach the Desired Position.

  • ENC# Linear Position
    When selected, the block's Output reflects the scaled position with respect to the position where the last Reset occurred. The ENC# Linear Position function block's Zero Point.

  • ENC Indexed Cyclic Position
    When selected, the block's Output reflects the scaled position with respect to the currently selected Index. By default, the Position Error output of the ENC Indexed Position function block is scaled by the Cycle Length. Use the scaling parameters to provide more resolution as you approach the currently selected Index position.

If set to None, the smarty will report an Association Warning in the System function block.


Encoder Revs Input, Read-write, Analog (unsigned 16-bit integer)
1 to 65535

The Encoder Revs parameter is used in conjunction with the Scaler parameter to create a 32-bit divisor for scaling the Output of the ENC Position Monitor function block as follows:

Output % = Internal Count ÷ ( 4 * Encoder Revs * Scaler ) ] * 100

The larger the product of the Encoder Revs and Scaler parameters, the lower the resolution of the Output; however, too small a product will quickly result in an overrange on the Output (i.e., either 327.67 % or - 326.67% depending on direction). Set the combination of the Encoder Revs and Scaler to suit the application.

Even if an overrange is indicated, the internal 64-bit value is monitored and updated. A proportional value will become available as soon as the block comes out of saturation based on the combined scaling of the Encoder Revs and Scaler. When the Output comes back in range, the actual current percentage will be displayed.


Scaler Input, Read-write, Analog (unsigned 16-bit integer)
1 to 65535

The Scaler parameter is used in conjunction with the Encoder Revs parameter to create a 32-bit divisor for scaling the Output of the ENC Position Monitor function block as follows:

Output % = Internal Count ÷ ( 4 * Encoder Revs * Scaler ) ] * 100

The larger the product of the Encoder Revs and Scaler parameters, the lower the resolution of the Output; however, too small a product will quickly result in an overrange on the Output (i.e., either 327.67 % or - 326.67% depending on direction). Set the combination of the Encoder Revs and Scaler to suit the application.

Even if an overrange is indicated, the internal 64-bit value is monitored and updated. A proportional value will become available as soon as the block comes out of saturation based on the combined scaling of the Encoder Revs and Scaler. When the Output comes back in range, the current percentage will be displayed.


Output Output, Read-only, Analog (signed 16-bit integer)
-327.67 % to 327.67 %

The Output parameter is generated from the associated function block's 64-bit value as follows:

Output % = Internal Count ÷ ( 4 * Encoder Revs * Scaler ) ] * 100

If the Output exceeds +/- 327.66%, the parameter will indicate overrange; however, the 64-bit Internal Count is unaffected.


-32767 = - overrange
32767 = + overrange