18 l_sdc_setbitofbyte - bit operation, 19 l_sdc_setbitofdword - bit operation, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 312

Advertising
background image

PLC Designer V2.x| Lenze Application Samples

The L_SDC_DataConversion.lib library

L_SDC_SetBitOfByte - bit operation

312

L

1.3 EN - 07/2012

18.18

L_SDC_SetBitOfByte - bit operation

This function sets an individual bit to "1" within a value of the "BYTE" type.

Inputs

Output signal
L_SDC_SetBitOfByte
- value of the "BYTE" type, which results by the bit set.

18.19

L_SDC_SetBitOfDWord - bit operation

This function sets an individual bit to "1" within a value of the "DWORD" type.

Inputs

Output signal
L_SDC_SetBitOfDWord
- value of the "DOUBLE WORD" type, which results by the bit set.

Identifier/data type

Information/possible settings

byInput

BYTE

Input signal

byBitNr

BYTE

No. (0 ... 7) of the bit that is to be set.

Identifier/data type

Information/possible settings

dwInput

DWORD

Input signal

byBitNr

BYTE

No. (0 ... 31) of the bit that is to be set.

Advertising