FC_UnpackDword

 

FC_UnpackDword - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Break down DWORD into 32 BOOL values.

Description

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

Interface

Input

Data type

Description

i_dwInput

DWORD

The DWORD 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_xB31

BOOL

Most significant bit of the DWORD

q_xB30

BOOL

Bit of the DWORD

q_xB29

BOOL

Bit of the DWORD

q_xB28

BOOL

Bit of the DWORD

q_xB27

BOOL

Bit of the DWORD

q_xB26

BOOL

Bit of the DWORD

q_xB25

BOOL

Bit of the DWORD

q_xB24

BOOL

Bit of the DWORD

q_xB23

BOOL

Bit of the DWORD

q_xB22

BOOL

Bit of the DWORD

q_xB21

BOOL

Bit of the DWORD

q_xB20

BOOL

Bit of the DWORD

q_xB19

BOOL

Bit of the DWORD

q_xB18

BOOL

Bit of the DWORD

q_xB17

BOOL

Bit of the DWORD

q_xB16

BOOL

Bit of the DWORD

q_xB15

BOOL

Bit of the DWORD

q_xB14

BOOL

Bit of the DWORD

q_xB13

BOOL

Bit of the DWORD

q_xB12

BOOL

Bit of the DWORD

q_xB11

BOOL

Bit of the DWORD

q_xB10

BOOL

Bit of the DWORD

q_xB09

BOOL

Bit of the DWORD

q_xB08

BOOL

Bit of the DWORD

q_xB07

BOOL

Bit of the DWORD

q_xB06

BOOL

Bit of the DWORD

q_xB05

BOOL

Bit of the DWORD

q_xB04

BOOL

Bit of the DWORD

q_xB03

BOOL

Bit of the DWORD

q_xB02

BOOL

Bit of the DWORD

q_xB01

BOOL

Bit of the DWORD

q_xB00

BOOL

Least significant bit of the DWORD

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.