Encoder
ENC Float IO
Description

ENC Float IO

Requires dwOption-11, Encoder Control.

Associate with ENC Linear Position or ENC Position Point function block to read the current position, scale it with two 16-bit integers, and output it as IEEE754 binary32 floating point number in two adjacent 16-bit parameters.

Associate with ENC Position Point function block to write to the position point. The position is entered as IEEE754 binary32 floating point number in two adjacent 16-bit parameters, and scaled with two additional 16-bit integers.

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

Parameters

Float Low Input, Read-write, Hexadecimal (unsigned 16-bit integer)
0x0 to 0xFFFF

ENC Float IO - Float Low, Float High

The IEEE754 binary32 floating point number in two adjacent 16-bit parameters that is read to or written from the function block.

Float High Input, Read-write, Hexadecimal (unsigned 16-bit integer)
0x0 to 0xFFFF

ENC Float IO - Float Low, Float High

The IEEE754 binary32 floating point number in two adjacent 16-bit parameters that is read to or written from the function block.

Enable Input, Read-write, Boolean (signed 16-bit integer)

ENC Float IO - Enable

The function block writes or reads the encoder position ONLY when this parameter is Enable, logic high.

0 = Disable
1 = Enable
Mode Input, Read-write, Boolean (signed 16-bit integer)

ENC Float IO - Mode

Select Read to read the current position, scale it, and output it as IEEE754 binary32 floating point number.

Select Write to write the IEEE754 binary32 floating point number to ENC Position Point function block. The ENC Position Point function block Output is zero when the encoder is at this position.


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

ENC Float IO - ENC Position

This parameter forms the required association with either ENC Linear Position or ENC Position Point function block.

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

ENC Float IO - Scaler 1

Unsigned 16-bit integer multiplies the encoder position that is read from the associated function block.

In Write mode, the parameter divides the incoming encoder position before it is written to the position point.


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

ENC Float IO - Scaler 2

Unsigned 16-bit integer divides the encoder position that is read from the associated function block.

In Write mode, the parameter multiplies the incoming encoder position before it is written to the position point.