8 l_tbconvwordtobits, L_tbconvwordtobits, Function library lenzeplctoolbox.lib – Lenze DDS Function library PLCToolBox User Manual

Page 16: Functions/function blocks

Advertising
background image

Function library LenzePLCToolBox.lib

Functions/function blocks

2.8

L_TBConvWordToBits

2−8

L

LenzePLCToolBox.lib EN 1.5

2.8

L_TBConvWordToBits

This FB returns the 16 corresponding bit values for an input value of type "word".

L_TBConvWordToBits

wInput

bBit0
bBit1
bBit2

bBit15

Word (16 bits)

ð Inputs
Identifiers

Data type

Info/possible settings

wInput

Word

Value to be converted

Outputs

ð

Identifiers

Data type

Value/meaning

bBit0

Bool

Output bit 0 of wInput (valency: 2

0

)

bBit1

Bool

Output bit 1 of wInput (valency: 2

1

)

bBit2

Bool

Output bit 2 of wInput (valency: 2

2

)

...

...

...

bBit15

Bool

Output bit 15 of wInput (valency: 2

15

)

Advertising