beautypg.com

25 l_dcbytebitxor - bit combination, L_dcbytebitxor, 5function blocks – Lenze E94A User Manual

Page 211

background image

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

211

5

Function blocks

5.25

L_DcByteBitxor - bit combination

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

5.25

L_DcByteBitxor - bit combination

This FB carries out a bit-by-bit EXCLUSIVE/OR 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 EXCLUSIVE OR combination

byIn2

BYTE

Value 2 for bit-by-bit EXCLUSIVE OR combination

Identifier/data type

Value/meaning

byOut

BYTE

Result of the bit-by-bit EXCLUSIVE/OR operation of byIn1 and byIn2

byIn1 - bit n

byIn2 - bit n

byOut - bit n

0

0

0

0

1

1

1

0

1

1

1

0

byIn1 = 00101001

byIn2 = 01111000

--------

byOut = 01010001

/B'F%\WH%LW[RU

E\,Q

E\,Q

E\2XW

%LW

%LW