Purpose of this manual – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 10

Advertising
background image

Publication 1746-RM001A-US-P

P-2

Purpose of this Manual

This manual is a reference guide for programming the BASIC or BASIC-T
module. This manual is intended for reference purposes only.

Chapter

Title

Contents

Preface

Describes the purpose, background, and scope of this manual. Also lists related
publications.

1

Language Elements

Describes BASIC program lines, line numbers, statements, commands,
operators, and line length.

2

Data Types

Describes and illustrates data types, variable names and types.

3

Expressions and Operators

Describes and illustrates arithmetic, logical, relational, trigonometric, functional,
logarithmic, string, and special function operators.

4

BASIC Commands

Describes and illustrates BRKPNT, CONT, [CTRL-C], [CTRL-S], [CTRL-Q], EDIT,
ERASE, IDLE, LIST, LIST@, LIST#, MODE, NEW, NULL, PROG, PROG1, PROG2,
RAM, REM, REN, ROM, RROM, RUN, SNGLSTP, VER, and XFER commands and
CALLs 18 and 19.

5

Command Line CALLS

Describes and illustrates CALLs 73, 74, 77, 81, 82, 101, 103, 104, 109, 110, and
111.

6

Assignment Functions

Describes and illustrates CLEAR, CLEARI, CLEARS, DATA, DIM, LET and
RESTORE functions.

7

Control Functions

Describes and illustrates CLOCK1, CLOCK0, DO-WHILE, DO-UNTIL, END,
FOR-TO-(STEP)-NEXT, GOTO, IF-THEN-ELSE, NEXT, and ON-GOTO functions.

8

Execution Control and Interrupt
Support Functions

Describes and illustrates CALLs 16, 17, 20, 21, 26, 38, 70, 71, 72, and GOSUB,
ONERR, ON-GOSUB, ONTIME, PUSH, POP, RETI, RETURN, and STOP functions.

9

Math and Backplane Functions

Describes and illustrates CALLs 14, 15, 24, 25, 88, and 89.

10

Clock/Calendar Functions

Describes and illustrates CALLs 40, 41, 42, 43, 44, 45, 46, 47, 48, and 52.

11

Status Functions

Describes and illustrates CALLs 36, 51, 55, 58, 59, 75, 80, 86, 87, 95, 97, 98, 108,
113, 120, and 121.

12

Output Functions

Describes and illustrates CALLs 23, 28, 29, 31, 37, 54, 57, 85, 91, 93, 94, 96, 112,
114, 115, 123, and PRINT, PH0. PH1. and ST@ functions.

13

Input Functions

Describes and illustrates CALLs 22, 27, 29, 35, 53, 56, 84, 90, 92, 117, 118, 122,
and GET, INPL, INPS, INPUT, LD@ and READ functions.

14

Setup Functions

Describes and illustrates CALLs 30, 78, 99, 105, 119, and MODE functions.

15

String Functions

Describes and illustrates CALLs 60, 61, 62, 63, 64, 65, 66, 67, 68, and STRING
functions.

Appendix A

Decimal/Hexidecimal/Octal/
ASCII Conversion Table

Lists the Decimal/Hexidecimal/Octal/ASCII equivalents.

Appendix B

BASIC Command, Statement, and
CALL Quick Reference Guide

Lists the various commands, statements, and CALLs needed for BASIC
programming.

Advertising