Convert to float (to_flt), C.9.3 convert to float (to_flt) – Nematron Pointe Controller User Manual
Page 431
Pointe Controller User Guide
Appendix C: Ladder Diagram Block Reference
429
Configuration Reference
The parameters of this block are described in the following table:
Param
Name
Config
Var Type
Description
EN
Enable
no
-
The state of the rung (off/on)
received from the left.
ENO
Enable
Out
no
-
The state of the rung (off/on)
passed to the right.
IN
Input
Value
req
any Input
any Memory
any Output
Numeric
String
The input value.
OUT
Output
Value
req
any integer*
The result of converting the input
value into an equivalent integer.
* Any Output or Memory tag except 32-bit Real (F) or Bit (X). For more information, see “
Defining
Input, Output, Memory tags
” on page 114
.
NOTE: This function does not check for bit register overflow. You can assign any
variables you wish, but mixing variable sizes – for example, a 32-bit input and an
8-bit output – may result in unusable output.
C.9.3 Convert to Float (TO_FLT)
When used in a Ladder Diagram, the TO_FLT block converts any input value into
an equivalent floating point number. It is used primarily to convert integer
variable types into floating-point variable types of the same value. However, any
input values can be given.
Select the
tool (from the
Miscellaneous Blocks
toolbar) and click on a ladder
rung to insert the following block:
Once the block is inserted, you can double-click on it to
configure
it.
Functional Description
This block always passes the Enable input state (EN) through to the Enable Out
output state (ENO) without change; when EN becomes on, ENO is turned on, and
when EN becomes off, ENO is turned off.