-

Assembling/Splitting FBs for (SAFE)BOOL/BYTE/WORD/DWORD

Type Function blocks

Available as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters.
Description The assembling function blocks are used to summarize binary signals to bit groups consisting of 8, 16, or 32 bits. To access the individual bits (BOOL) in a bit group, the group (BYTE, WORD, or DWORD) has to be split first using the splitting function blocks.

Background: To improve the clarity of the safety logic and to process signals as a bundle, the individual binary signals (BOOLean variables) can be combined (summarized) to groups. These bit groups can then be handled as BYTE, WORD, or DWORD data type respectively.
Available function blocks Assembly function blocks:

SAFEBITS_TO_SAFEBYTE / BITS_TO_BYTE

SAFEBITS_TO_SAFEWORD / BITS_TO_WORD

SAFEBYTES_TO_SAFEWORD / BYTES_TO_WORD

SAFEWORDS_TO_SAFEDWORD / WORDS_TO_DWORD

Splitting function blocks:

SAFEBYTE_TO_SAFEBITS / BYTE_TO_BITS

SAFEWORD_TO_SAFEBITS / WORD_TO_BITS

SAFEWORD_TO_SAFEBYTES / WORD_TO_BYTES

SAFEDWORD_TO_SAFEWORDS / DWORD_TO_WORDS