beautypg.com

31 l_dcdwordbitand - bit combination, L_dcdwordbitand, 5function blocks – Lenze E94A User Manual

Page 217

background image

Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05

217

5

Function blocks

5.31

L_DcDWordBitand - bit combination

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

5.31

L_DcDWordBitand - bit combination

This FB carries out a bit-by-bit AND operation of two input values of "DWORD" type and also outputs

the results as "DWORD".

Inputs

Outputs

Function

Example

Function library:

LenzeDataConversion

Runtime software licence:

Motion Control HighLevel

Motion Control TopLevel

Identifier/data type

Information/possible settings

dwIn1

DWORD

Value 1 for bit-by-bit AND combination

dwIn2

DWORD

Value 2 for bit-by-bit AND combination

Identifier/data type

Value/meaning

dwOut

DWORD

Result of the bit-by-bit AND operation of dwIn1 and dwIn2

dwIn1 - bit n

dwIn2 - bit n

dwOut - bit n

0

0

0

0

1

0

1

0

0

1

1

1

dwIn1 = 00011001010011100001011000101000

dwIn2 = 01010001100001100100100001111000

--------------------------------

dwOut = 00010001000001100000000000101000

/B'F':RUG%LWDQG

GZ,Q

GZ,Q

GZ2XW

%LW

%LW