beautypg.com

Argox PA-20 Basic Programming Manual User Manual

Page 3

background image

PT-Basic Programming Manual Ver. 1.00

2/143

Table of Contents

Preface ........................................................................................................................... 1

Table of Contents ......................................................................................................... 2

1

How to run BASIC program ............................................................................... 5

1.1

BASIC Menu ............................................................................................. 5

1.1.1

Run program .................................................................................. 5

1.1.2

Communication .............................................................................. 5

1.1.3

Information .................................................................................... 7

2

Program Structure ............................................................................................... 8

2.1

Constants .................................................................................................... 8

2.1.1

String .............................................................................................. 8

2.1.2

Numeric.......................................................................................... 8

2.2

Variables ..................................................................................................... 8

2.2.1

Variable Names and Declaration Characters .................................. 9

2.2.2

Array Variables .............................................................................. 9

2.3

Expression and Operators .......................................................................... 9

2.3.1

Assignment Operator ................................................................... 10

2.3.2

Arithmetic Operator ..................................................................... 10

2.3.3

Relational Operator ...................................................................... 10

2.3.4

Logical Operator .......................................................................... 10

2.4

Operator Precedence ................................................................................ 11

2.5

Labels ....................................................................................................... 11

2.6

Subroutines .............................................................................................. 12

2.7

Exit program ............................................................................................ 13

2.8

Special notes ............................................................................................ 13

3

Command Sets .................................................................................................... 14

3.1

General commands................................................................................... 14

3.2

Commands for decision structures ........................................................... 18

3.3

Commands for looping structures ............................................................ 21

3.4

Commands for string processing ............................................................. 23

3.5

Commands for event trapping .................................................................. 29

3.6

System commands ................................................................................... 39

3.7

Reader commands .................................................................................. 43

3.8

Beeper commands .................................................................................... 50

3.9

Calendar and timer commands................................................................. 52