beautypg.com

Sleep_reader, Get_reader_data – Argox PA-20 Basic Programming Manual User Manual

Page 45

background image

PT-Basic Programming Manual Ver. 1.00

44/143

SLEEP_READER

Purpose: To set scanner module to sleep.

Syntax: SLEEP_READER(N%)

Example: SLEEP_READER (1) „Scanner to sleep

Description: N% is an integer variable.

N%

Meaning

0

Not sleep

1

To sleep

GET_READER_DATA$

Purpose: To get data that is read from a specified reader ports.

Syntax: A$ = GET_READER_DATA$(N1%,N2%)

Example: ON READER(1) GOSUB SCAN

ENABLE READER(1)

SCAN:

A$=GET_READER_DATA$(1,4)

RETURN

Description: This command will get reader port data.

A$ is a string variable to be assigned to the result.

N1% is an integer variable, indicating the reader port (now we

only can choose 1).

N2% is an integer variable, indicating what kind of data to be

retrieved.

N2%

Meaning

1

Code Name

2

Full Code

3

Code ID

4

Data


 The format of Full Code as follows:

Code

name

Preamble ID

*

Code

Length

Barcode

data

ID

*

Postamble

Suffix

The ID position depends on “Code ID position” setting.