Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 77

Advertising
background image

BASIC PROGRAMMING GUIDE

2-68

TAB

Syntax:

PRINT TAB(position)
Where: position = 1 to 255

Function:

Specifies a column number at to begin printing.

Mode:

Command, run

Use:

PRINT TAB(5), "Pressure", TAB (20),"Temperature"

DESCRIPTION

TAB is used with PRINT. It is used to print data in table form. If the cursor is past the requested column, the
instruction is ignored.

ERROR

BAD ARGUMENT When position is negative or out of range.

EXAMPLE

100

PRINT TAB(5),"Pressure",TAB(20),"Temperature"

110

FOR N=0 TO 6

120

PRINT TAB(7),REGREAD(2)*.237,

130

PRINT TAB(23),REGREAD(3)*1.324

140

NEXT

>run

Pressure

Temperature

116.13

237.3

116.14

237.3

116.13

237.4

116.14

237.4

116.11

237.0

116.16

237.6

116.13

237.5

Advertising