Function - Test if an integer is odd.

Inputs

Input

Data type

Description

IN

DINT

Input value.

Outputs

Output

Data type

Description

Q

BOOL

TRUE if IN is odd. FALSE if IN is even.

Remarks

In LD language, the input rung (EN) enables the operation, and the output rung is the result of the function.

ST Language

Q := ODD (IN);

FBD Language

Fixed_Image

LD Language

The function is executed only if EN is TRUE.

Fixed_Image

Fixed_Image See also

MIN  MAX  LIMIT  MOD


Created with the Personal Edition of HelpNDoc: Revolutionize Your Documentation Output with HelpNDoc's Stunning User Interface