Miscellaneous calls, Program port baud rate – call 78 – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 129

Advertising
background image

Operating Functions

Chapter 5

5–92

B. Arrays

Use an array to set up the data

uPRINT MTOP 14335

uPRINT MTOP-24 14311

uPUSH 14311:REM NEW MTOP ADDRESS
CALL 77

100 DIM A(4)
110 DATA 10, 20, 30, 40
120 FOR I=1 TO 4: READ A(I) : NEXT I

Use ST@ and LD @ commands in a DO loop:

u190 M1=14335

u200 DO

u210 PUSH A(I) : ST @ M1

u220 I = I+1 : M1 = M1-6

u230 UNTIL I = 4

u290 M1=14335

u300 DO

u310 LD @ M1 : POP A(I)

u320 PRINT A(I)

u330 I = I+1 : M1 = M1-6

u340 UNTIL I 10

The following sections list and describe the miscellaneous calls you can
use with the BASIC Module.

CALL 78 allows you to change the program port baud rate from its default
value (1200 baud) to one of the following: 300, 600,1200, 2400, 4800,
9600 or 19.2 K baud. PUSH the desired baud rate and CALL 78. The
program port remains at this baud rate unless CALL 73 is invoked or the
battery is removed and power is cycled. If this happens the baud rate
defaults to 1200 baud.

Example:

u10 PUSH 4800

u20 CALL 78

5.11.6
Protected Variable
Storage – CALL 77
(continued)

5.12
Miscellaneous Calls

5.12.1
Program Port Baud Rate –
CALL 78

Advertising