Skip to main content

10.4.1.12. CLR_RBUF

10.4.1.12. CLR_RBUF

 

Explanation

If you don’t know if there is a residual string not recognized in the received buffer of the INPUT statement before receiving the new string with the INPUT command, you can empty the buffer with this command.

Grammar

CLR_RBUF <Input direction>

Parameter

Input direction

#0 : Teach pendant

#1 : Serial port COM 1

#2 : Serial port COM 2

ENET1 : Common Ethernet port (EN2) object 1

ENET2 : Common Ethernet port (EN2) object 2

ENET3 : Common Ethernet port (EN2) object 3

Example

CLR_RBUF #1

CLR_RBUF ENET2