TRUNC_UDINT block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
no restrictions, but: implementer-specific realization; see "Functionality" |
Graphical interface |
|
Available since |
|
Functionality
The mathematical function trunc is called:
The decimal portion of the floating-point number connected to input IN
is truncated (there is no rounding). The block returns the integer value as UDINT
value.
Implementer-specific realization The IEC-standard defines that it is an error when the connected value is not within the range of values overlapping for the data type of the input and for the data type of the return value as well as that the behavior in the case of such an error is implementer specific. The general behavior of the |
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
value to truncate |
Return value: |
– |
|
|
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.