any_to_dint / any_to_udint

PLCopen motion icon

Operator - Converts the input into integer value.

Can be unsigned with any_to_udint.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN

ANY

 

 

 

Input value.

Outputs

Output

Data Type

Range

Unit

Description

Q

DINT

 

 

Value converted to a signed double integer. (32-bit).

Q

UDINT

 

 

Value converted to an unsigned double integer. (32-bit).

Remarks

  • For BOOL input data types, the output is 0 (zero) or 1.
  • For REAL input data type, the output is the integer part of the input real.
  • For TIME input data types, the result is the number of milliseconds.
  • For STRING input data types, the output is the number represented by the string or 0 (zero) if the string does not represent a valid number.

FBD Language

Any_To_DintFbd.gif (1274 octets)

FFLD Language

  • In the FFLD language, the conversion is executed only if the input rung (EN) is TRUE.
    • The output rung (ENO) keeps the same value as the input rung.

Any_To_DintLd.gif (1493 octets)

IL Language

Op1: FFLD  IN
     ANY_TO_DINT
     ST  Q

ST Language

Q := ANY_TO_DINT (IN);

See Also