Copyright: Created with EasyHelp (Tel: 0973 209667)


SignalP/Value to Binary - RG354438

Description

This block converts a scaled value (#LJParameters#Scaler * Value) into binary (logic) Outputs.  The outputs Bit 0 (least significant bit) through Bit 11 (most significant bit) represent the whole part of the scaled value and Exp 0 (least significant bit) through Exp 2 (most significant bit) represent the exponent, i.e. scaled value = whole part * (2^(exponent-7).  If input Exponent is disabled, Exp 0 through Exp 2 are not processed and Bit 0 through Bit 11 represent the scaled output.

When this block receives a new Scaler or Value input, the Data Valid output is set FALSE and a data invalid timer is started.  At the end of this period (configuration parameter Invalid Delay Time), the scaled value is computed from the current Scaler and Value inputs values (if new values for either of these items are received during the timer period, the new values will be used but the timer will not be reset) and Bit 0 through Bit 11 and Exp 0 through Exp 2 are output (note that all outputs are sent, not just the ones that change value!).  The data valid timer is then started.  At the end of this period (configuration parameter Valid Delay Time), the Data Valid output is set to TRUE.

Parameters

Value	Input. Expects a value (0.0 to 1.00).

Scaler	Scaling factor.  Expects an ordinal (0 to 4095).

Exponent	Exponent enable.  Expects either Enabled or Disabled.

Get Value	Returns the current value of input Value.

Get Scaler	Returns the current value of input Scaler.

Get Exponent	Returns the current value of input Exponent.


Description

This block converts a scaled value (#LJParameters#Scaler * Value) into binary (logic) Outputs.  The outputs Bit 0 (least significant bit) through Bit 11 (most significant bit) represent the whole part of the scaled value and Exp 0 (least significant bit) through Exp 2 (most significant bit) represent the exponent, i.e. scaled value = whole part * (2^(exponent-7).  If input Exponent is disabled, Exp 0 through Exp 2 are not processed and Bit 0 through Bit 11 represent the scaled output.

When this block receives a new Scaler or Value input, the Data Valid output is set FALSE and a data invalid timer is started.  At the end of this period (configuration parameter Invalid Delay Time), the scaled value is computed from the current Scaler and Value inputs values (if new values for either of these items are received during the timer period, the new values will be used but the timer will not be reset) and Bit 0 through Bit 11 and Exp 0 through Exp 2 are output (note that all outputs are sent, not just the ones that change value!).  The data valid timer is then started.  At the end of this period (configuration parameter Valid Delay Time), the Data Valid output is set to TRUE.


#LJParameters#Parameters

Value	Input. Expects a value (0.0 to 1.00).

Scaler	Scaling factor.  Expects an ordinal (0 to 4095).

Exponent	Exponent enable.  Expects either Enabled or Disabled.

Get Value	Returns the current value of input Value.

Get Scaler	Returns the current value of input Scaler.

Get Exponent	Returns the current value of input Exponent.