Name :Bit-to-byte

Symbol :BIT_AS_BYTE

Illustrate:

        Consolidate bit data into bytes

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
IN | B0,B1,B2,..,B7 | BOOL |
    Enter a value
OUT | Output | BYTE |
    Output value

Example:

LD:

ST:

BIT_AS_BYTE_inst1(B0 := , B1 := , B2 := , B3 := , B4 := , B5 := , B6 := , B7 := , B => );

Interpretation:

parameter | operand | value
--- | --- | ---
IN | B0,B1,B2,...,B7 | Enter a value：BOOL
OUT | B | Output value：BYTE

        Enter BOOL (TRUE, FALSE) data, integrate 8 bits, and output BYTE data in OUT.