Function - Get the most significant byte of a word

Inputs

Input

Data type

Description

IN

UINT

16 bit register.

Outputs

Output

Data type

Description

Q

USINT

Most significant byte.

Remarks

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

ST Language

Q := HIBYTE (IN);

FBD Language

Fixed_Image

LD Language

The function is executed only if EN is TRUE.
ENO keeps the same value as EN.

Fixed_Image


Created with the Personal Edition of HelpNDoc: Elevate Your Help Documentation with a Help Authoring Tool