17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TRANSFER$<br />

Chapter 2 Program Instructions<br />

Field of Application Function executing a transfer from source to destination as specified by<br />

a TRANSFERSET statement.<br />

Syntax TRANSFER$()<br />

is the character time-out in ticks (10 mS).<br />

Remarks The TRANSFER$ function executes the transfer from source to destination<br />

as specified by the TRANSFERSET statement. It also checks the transfer and<br />

breaks it if no character has been transmitted before the specified time-out has<br />

expired or if any break character, as specified by the break character string in<br />

the TRANSFERSET statement, is encountered.<br />

If the transmission was interrupted because a character in the break set was<br />

encountered, that character will be returned.<br />

If the transmission was interrupted because of a time-out error, an empty<br />

string will be returned.<br />

If the transmission was interrupted because of the reception of a character on<br />

any other communication channel than the source (as specified by<br />

TRANSFERSET statement), an empty string will be returned.<br />

Example The transfer will be executed by the TRANSFER$ function in line 60 and<br />

possible interruptions will be indicated by a break character or empty string<br />

(" ") in the string variable C$.<br />

10 OPEN "LABEL1.PRG" FOR INPUT AS #1<br />

20 OPEN "UART1:" FOR OUTPUT AS #2<br />

30 A$=CHR$(13)<br />

40 B$=CHR$(10)<br />

50 TRANSFERSET #1, #2, A$+B$<br />

60 C$=TRANSFER$(100)<br />

.....<br />

.....<br />

.....<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 235

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!