beautypg.com

23 l_dcbytebitand - bit combination, L_dcbytebitand, 5function blocks – Lenze E94A User Manual

Page 209

background image

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

209

5

Function blocks

5.23

L_DcByteBitand - bit combination

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

5.23

L_DcByteBitand - bit combination

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

the results as "BYTE".

Inputs

Outputs

Function

Example

Function library:

LenzeDataConversion

FB is available as of library V02.02!

Runtime software licence:

Motion Control HighLevel

Motion Control TopLevel

Identifier/data type

Information/possible settings

byIn1

BYTE

Value 1 for bit-by-bit AND combination

byIn2

BYTE

Value 2 for bit-by-bit AND combination

Identifier/data type

Value/meaning

byOut

BYTE

Result of the bit-by-bit AND operation of byIn1 and byIn2

byIn1 - bit n

byIn2 - bit n

byOut - bit n

0

0

0

0

1

0

1

0

0

1

1

1

byIn1 = 00101001

byIn2 = 01111000

--------

byOut = 00101000

/B'F%\WH%LWDQG

E\,Q

E\,Q

E\2XW

%LW

%LW