7 l_sdc_bytetobits - bit demultiplexer, 8 l_sdc_getbitofbyte - conversion block, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 306

Advertising
background image

PLC Designer V2.x| Lenze Application Samples

The L_SDC_DataConversion.lib library

L_SDC_ByteToBits - bit demultiplexer

306

L

1.3 EN - 07/2012

18.7

L_SDC_ByteToBits - bit demultiplexer

This FB outputs the 8 corresponding bit values for an input value of the "BYTE" type.

Inputs

Outputs

18.8

L_SDC_GetBitOfByte - conversion block

This function returns the state of an individual bit value as a "BYTE" value.

Inputs

Output signal
L_SDC_GetBitOfByte:
New value of the "BYTE" type, which results from the respective

input signal.

Identifier/data type

Information/possible settings

byInput

BYTE

Input signal

Identifier/data type

Information/possible settings

xBit0..xBit7

BOOL

Output of bit 0..bit 7 of byInput (valency: 2

0

..2

7

)

Identifier/data type

Information/possible settings

byInput

BYTE

Input signal

byBitNr

BYTE

Number (0 ... 7) of the bit of byInput, the status of which is to be determined.

Advertising