beautypg.com

11ć4, 3 testline – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 129

background image

Using Report Generation Functions

Chapter 11

11Ć4

Example using the testchar function:

If you enter:

IF (TESTC()) G LABEL_2

In the command line above, if a character is in the input buffer, the
1775-S4B scanner executes the goto command.

Definition: To test the data terminal input buffer for a complete line.

Abbreviation: TESTL

Format: TESTL()

Description: The testline function tests the input buffer for a line. The
1775-S4B scanner defines a line to be one or more characters followed by
a carriage return. The testline function returns one of the following values:

If the value is:

Then the input buffer:

1
0

Contains a line of data terminated by a carriage return.
Does not contain a line terminated by a carriage return.

The testline function does not clear a line from the input buffer. Commands
and operators can use this value specified by the testline function.

Example using the testline function:

If you enter:

IF (TESTL()) IN US_6

In the command line above, if a line is in the input buffer, the 1775-S4B
scanner executes the inquire command.

11.2.3
Testline