beautypg.com

Statement: print# or p – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 73

background image

Operating Functions

Chapter 5

5–36

5.4.22.8
Reset Print Head Pointer – CALL 99

You can use CALL 99 when printing out wide forms to reset the internal
print read/character counter and prevent the automatic CR/LF at character
79. You must keep track of the characters in each line.

You can solve this problem in revision A or B modules using DBY(1 6H) 0

Example:

u10 REM THIS PRINTS TIME BEYOND 80TH COLUMN

u20 PRINT TAB (79),

u30 CALL 99 40 PRINT TAB (41), “TIME –”,

u50 PRINT H , “:” , M , “:” ,S

u60 GOTO 20

u70 END

Mode: COMMAND and/or RUN
Type: INPUT/OUTPUT

The PRINT# (PRINT @) or P.# statement functions the same as the
PRINT or P. statement except that the output is directed to the list device
instead of the console device. The baud rate and peripheral port parameters
must match your device. See Chapter 3 Section 3.2.4 titled, “Configuration
Plugs” and Chapter 5 Section 5.8.1 titled, “Peripheral Port Support –
Parameter Set – CALL 30

.

All comments that apply to the PRINT or P. statement apply to the
PRINT# or P.# statement. P.# is a “shorthand” notation for PRINT#.

5.4.22
Special Print Formatting
Statements (continued)

5.4.23
Statement: PRINT# or P.#