244
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Use of the serial interface
Parameters of the function outputs
Name
Data type Description
RX
BYTE
Byte data received from the receive buffer
AVAILABLE WORD
Number
of data bytes received
0 = no valid data available
OVERFLOW
BOOL
Overflow of the data buffer, loss of data!
Example:
3 bytes are received:
1st call of SERIAL_RX
1 valid value at output RX
→
AVAILABLE = 3
2nd call of SERIAL_RX
1 valid value at output RX
→
AVAILABLE = 2
3rd call of SERIAL_RX
1 valid value at output RX
→
AVAILABLE = 1
4th call of SERIAL_RX
invalid value at the output RX
→
AVAILABLE = 0
If AVAILABLE = 0, the function can be skipped during processing of the program.