FC_UnpackByte

 

FC_UnpackByte - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Break down BYTE into 8 BOOL values.

Description

The function breaks down the BYTE from the input into its bit components and delivers these as BOOL values.

Interface

Input

Data type

Description

i_byInput

BYTE

The BYTE which is to be split up into its bits

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

q_xB07

BOOL

Most significant bit of the BYTE

q_xB06

BOOL

Bit of the BYTE

q_xB05

BOOL

Bit of the BYTE

q_xB04

BOOL

Bit of the BYTE

q_xB03

BOOL

Bit of the BYTE

q_xB02

BOOL

Bit of the BYTE

q_xB01

BOOL

Bit of the BYTE

q_xB00

BOOL

Least significant bit of the BYTE

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The BOOL variables have been unpacked successfully.