FC_PackDword

 

FC_PackDword - General Information

Overview

Type:

Function

Available as of:

V1.0.3.0

Versions:

Current version

Task

Pack 32 BOOL variables in one DWORD.

Description

Returns one DWORD whose bits represent the BOOL input values. The bits are arranged increasing from low to high after the numbering of the input value.

Interface

Input

Data type

Description

i_xB31

BOOL

Most significant input bit

i_xB30

BOOL

Input bit

i_xB29

BOOL

Input bit

i_xB28

BOOL

Input bit

i_xB27

BOOL

Input bit

i_xB26

BOOL

Input bit

i_xB25

BOOL

Input bit

i_xB24

BOOL

Input bit

i_xB23

BOOL

Input bit

i_xB22

BOOL

Input bit

i_xB21

BOOL

Input bit

i_xB20

BOOL

Input bit

i_xB19

BOOL

Input bit

i_xB18

BOOL

Input bit

i_xB17

BOOL

Input bit

i_xB16

BOOL

Input bit

i_xB15

BOOL

Input bit

i_xB14

BOOL

Input bit

i_xB13

BOOL

Input bit

i_xB12

BOOL

Input bit

i_xB11

BOOL

Input bit

i_xB10

BOOL

Input bit

i_xB09

BOOL

Input bit

i_xB08

BOOL

Input bit

i_xB07

BOOL

Input bit

i_xB06

BOOL

Input bit

i_xB05

BOOL

Input bit

i_xB04

BOOL

Input bit

i_xB03

BOOL

Input bit

i_xB02

BOOL

Input bit

i_xB01

BOOL

Input bit

i_xB00

BOOL

Least significant input bit

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

Return Value

Data type

Description

DWORD

A DWORD whose bits represent the BOOL input values.

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 packed successfully.