SendByte

SendByte 1:

Interface

VAR_INPUT
    SendByte: BYTE;
END_VAR
VAR_OUTPUT
    Busy : BOOL;
    Error: ComError_t;
END_VAR
VAR_IN_OUT
    TxBuffer: ComBuffer;
END_VAR

Description

SendByte sends a single character to the interface corresponding to the input variable TxBuffer. For as long as Busy=TRUE, the transmission is not completed. The character was successfully sent when Busy=FALSE and Error=0.

Note

As long as the send data buffer can still accept data, more than one character can be sent in a single PLC cycle. This is, however, only worthwhile if the buffered characters will be transmitted to the hardware by a faster communication task.