ReceiveByte

ReceiveByte 1:

Interface

VAR_OUTPUT
    ByteReceived : BOOL;
    ReceivedByte : BYTE;
    Error        : INT;
END_VAR
VAR_IN_OUT
    RxBuffer     : ComBuffer;
END_VAR

ComBuffer

Description

The ReceiveByte block receives a single character from the interface corresponding to the input variable RxBuffer. If ByteReceived=TRUE after the call, then the data byte received is available in the output variable ReceivedByte. Otherwise no data has been received.