Null, New -14, Null -14 – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 54: If-then-else -8, Example, Purpose, Syntax

Advertising
background image

Publication 1746-RM001A-US-P

4-14 BASIC Commands

Example

>1

REM EXAMPLE PROGRAM

>10 MODE(DH485,19200,0,1,2,,R)

.

.

.

>25 MODE(PRT1,1200,N,8,,,)

NEW

Purpose

Use the NEW command to delete the program currently stored in RAM. In
addition, all variables are set equal to ZERO; all strings and all BASIC evoked
interrupts are cleared. The free running clock, string allocation, and internal stack
pointer values are not affected. The NEW command is used to erase a program and
all variables in RAM.

Syntax

NEW

Example

>NEW

>LIST

>READY

>

NULL

Purpose

Use the NULL command to determine how many NULL characters (00H) the
module outputs after a carriage return in a print statement. After initialization this
value is set to 0. Most printers contain a RAM buffer that eliminates the need to
output NULL characters after a carriage return.

Syntax

NULL[integer]

IMPORTANT

The E storage type option cannot be used if MODE is used as a
statement.

Advertising