Argox PA-20 Basic Programming Manual User Manual Page 36

  • Download
  • Add to my manuals
  • Print
  • Page
    / 143
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 35
PT-Basic Programming Manual Ver. 1.00 35/143
ON READER GOSUB
Purpose
To activate READER event trigger.
Syntax
ON READER(N%) GOSUB SubLabel | SubName
Example
ON READER(1) GOSUB GetData
GetData:
OFF READER(1)
CLS
A$=GET_READER_DATA$(1,4)
PRINT "DATA:"+A$
LOCATE 0,2
A$=GET_READER_DATA$(1,1)
PRINT "Name:"+A$
LOCATE 0,4
PRINT GET_READER_DATALEN
ON READER(1) GOSUB GetData
RETURN
Description
When data is received from reader port, a specific subroutine
will be executed.
N% is an integer variable, indicating the reader port (now we
only can choose 1).
Page view 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 142 143

Comments to this Manuals

No comments