Skip to main content

TB_A_BOOL_TO_DWORD

TB_A_BOOL_TO_DWORD

With this function block, a DWORD is composed of 32 individual BOOLs

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

none

Ausgänge

Marking:Data type:Description:
dw_OUTDWORDCompound data word

Ein-/Ausgänge

Marking:Data type:Description:
a_BOOL32ARRAY_32_BOOLArray with 32 elements of the type Bool
Representation in FBD

TB_A_BOOL_TO_DWORD

TB_A_BOOL_TO_DWORD

With this function block, a DWORD is composed of 32 individual BOOLs

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

none

Ausgänge

Marking:Data type:Description:
dw_OUTDWORDCompound data word

Ein-/Ausgänge

Marking:Data type:Description:
a_BOOL32ARRAY_32_BOOLArray with 32 elements of the type Bool
Representation in FBD

TB_BITS_OF_BYTE

TB_BITS_OF_BYTE

This function block extracts a Bit from a Byte. The individual bits are provided at the output.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
b_INBYTEInput Byte

Ausgänge

Marking:Data type:Description:
x_BIT_00 .. 07BOOLOutput Bit 0 .. 7

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_OF_BYTE

TB_BITS_OF_BYTE

This function block extracts a Bit from a Byte. The individual bits are provided at the output.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
b_INBYTEInput Byte

Ausgänge

Marking:Data type:Description:
x_BIT_00 .. 07BOOLOutput Bit 0 .. 7

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_OF_DWORD

TB_BITS_OF_DWORD

This function block extracts a Bit from a DWord. The individual bits are provided at the output.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

Marking:Data type:Description:
x_BIT_00 .. 31BOOLOutput Bit 0 .. 31

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_OF_DWORD

TB_BITS_OF_DWORD

This function block extracts a Bit from a DWord. The individual bits are provided at the output.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

Marking:Data type:Description:
x_BIT_00 .. 31BOOLOutput Bit 0 .. 31

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_OF_WORD

TB_BITS_OF_WORD

This function block extracts a Bit from a Word. The individual bits are provided at the output.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
w_INWORDInput Word

Ausgänge

Marking:Data type:Description:
x_BIT_00 .. 15BOOLOutput Bit 0 .. 15

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_OF_WORD

TB_BITS_OF_WORD

This function block extracts a Bit from a Word. The individual bits are provided at the output.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
w_INWORDInput Word

Ausgänge

Marking:Data type:Description:
x_BIT_00 .. 15BOOLOutput Bit 0 .. 15

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_TO_BYTE

TB_BITS_TO_BYTE

This function composes a Byte from 8 individual bits.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
x_BIT_0 .. 7BOOLInput bits 0 .. 7

Ausgänge

none

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_TO_BYTE

TB_BITS_TO_BYTE

This function composes a Byte from 8 individual bits.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
x_BIT_0 .. 7BOOLInput bits 0 .. 7

Ausgänge

none

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_TO_DWORD

TB_BITS_TO_DWORD

This function composes a DWord from 32 individual bits.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
x_BIT_00 .. 31BOOLInput bits 0 .. 31

Ausgänge

none

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_TO_DWORD

TB_BITS_TO_DWORD

This function composes a DWord from 32 individual bits.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
x_BIT_00 .. 31BOOLInput bits 0 .. 31

Ausgänge

none

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_TO_WORD

TB_BITS_TO_WORD

This function composes a Word from 16 individual bits.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
x_BIT_00 .. 15BOOLInput bits 0 .. 15

Ausgänge

none

Ein-/Ausgänge

none
Representation in FBD

TB_BITS_TO_WORD

TB_BITS_TO_WORD

This function composes a Word from 16 individual bits.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: none

Eingänge

Marking:Data type:Description:
x_BIT_00 .. 15BOOLInput bits 0 .. 15

Ausgänge

none

Ein-/Ausgänge

none
Representation in FBD

TB_DWORD_TO_A_BOOL

TB_DWORD_TO_A_BOOL

This function block extracts a bit from a DWORD. The bits are output in an array.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

none

Ein-/Ausgänge

Marking:Data type:Description:
a_BOOL32ARRAY_32_BOOLArray with 32 elements of the type Bool
Representation in FBD

TB_DWORD_TO_A_BOOL

TB_DWORD_TO_A_BOOL

This function block extracts a bit from a DWORD. The bits are output in an array.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

none

Ein-/Ausgänge

Marking:Data type:Description:
a_BOOL32ARRAY_32_BOOLArray with 32 elements of the type Bool
Representation in FBD

TB_FIRST_S_BIT_OF_DWORD

TB_FIRST_S_BIT_OF_DWORD

This function block extracts the furthest right set bit from a DWord.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

Marking:Data type:Description:
si_FSBitSINTDisplays the bit no. of the set bit furthest to the right.
dw_OutDWORDOutput DWord in which only the furthest right bit is set, all other bits are masked out.

Ein-/Ausgänge

none
Representation in FBD

TB_FIRST_S_BIT_OF_DWORD

TB_FIRST_S_BIT_OF_DWORD

This function block extracts the furthest right set bit from a DWord.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

Marking:Data type:Description:
si_FSBitSINTDisplays the bit no. of the set bit furthest to the right.
dw_OutDWORDOutput DWord in which only the furthest right bit is set, all other bits are masked out.

Ein-/Ausgänge

none
Representation in FBD

TB_LAST_S_BIT_OF_DWORD

TB_LAST_S_BIT_OF_DWORD

This function block extracts the furthest left set bit from a DWord.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

Marking:Data type:Description:
si_LSBitSINTDisplays the bit no. of the set bit furthest to the left.
dw_OutDWORDOutput DWord in which only the furthest left bit is set, all other bits are masked out.

Ein-/Ausgänge

none
Representation in FBD

TB_LAST_S_BIT_OF_DWORD

TB_LAST_S_BIT_OF_DWORD

This function block extracts the furthest left set bit from a DWord.

Empfohlene Task: Cyclic / Event

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher

Eingänge

Marking:Data type:Description:
dw_INDWORDInput DWord

Ausgänge

Marking:Data type:Description:
si_LSBitSINTDisplays the bit no. of the set bit furthest to the left.
dw_OutDWORDOutput DWord in which only the furthest left bit is set, all other bits are masked out.

Ein-/Ausgänge

none
Representation in FBD