Remote Technologies RPC-320 manual Autorunning, Preventing Autorun, Loading a Program, Execute

Page 13

SAVING PROGRAMS

The time it takes save a program depends upon the length and complexity of the program and flash EPROM type. Pr ogramm ing rate is roughly 600 bytes/second. If the program is not successfully saved to EPROM, an error message will appear .

Saving a pr ogram overw rites the pr evious one. Ther e is no way to recover the old one since both occupy the same space.

Using SAVE without any parameters is the same as typing SAVE 0.

When a 128K (29C 010) or 5 12K (29C 040) EP ROM is installed in U6, the SAVE segment parameter is 0 or 1 (128K) or 0 - 7 (512K). EX ECU TE loads and runs the program in the segment specified by SAVE. A 32K (29C256) EPROM can run just one program .

Make the following modifications to the above program as instructed to see how one program can call another . There m ust be a 128K or 512K EPRO M installed to run this code.

Add the following lines:

10PRINT "Program segment 0"

60EXECUTE 1

Now type:

SAVE 0

Now m odify lines 10 and 60 as follows:

10PRINT "Pr ogram segme nt 1"

60EXECUTE 0

Now type:

SAVE 1

To see the programs operate, type RUN. To stop program execution, press < Ctrl- C> .

You may notice there is a slight pause between the printed he llo' s and pro gram segmen t number . T his is the time it takes to clear memory and load the program . Loading and clear ing take appr oximately 0.2 5 seconds in a very small program up to 1 second in a very large program .

SECTION 3

AUTORUNNING

To autorun a program:

1.Make sure there is a program in EP ROM (from above). When using a 128K or 512K size EPROM, make su re the star t up progr am w as saved to segment 0.

2.Remove jumper W9.

Push the reset button . The program will run . If there are any error s, the progr am will stop (assuming you have not trapped them with ON E RROR) and display the error m essage. EX ECU TE n is used within any program to load and run another program. The EPROM size must be a 128K or 512K.

PREVENTING AUTORUN

When troubleshooting a program , it' s not always convenient fo r an autoe xecute file to r un. This is especially tr ue if the pro gram has been co nfigured to ignore the < ESC> or < Ctl-C> keys.

To prevent autorun, install jumper W9 before power up or re set.

LOADING A PROGRAM

Ther e are tim es when y ou may w ish to tempor arily modify or otherwise test out a change to a program . Since the program is loaded into RAM in autorun, modifica tions are m ade withou t affecting the pr ogram in EPROM . Use the LOAD or LOAD n comm and to transfer the EPROM program to RAM.

If you find out tha t modification s are not de sirable or did not work, you can restore the original program to RAM using the LOAD com mand.

CHANGING EPROM SIZE

The RP C-320 can com e with a 32K or 512 K flash EPROM . The size may be changed at any time. Set W3 according to the type/size.

Type

Size

W3

 

Bytes

Configuration

29C256

32K

[3-5], [4-6]

29C010

128K

[3-5], [2-4]

Page 3-2 RPC -320

Image 13
Contents Trademarks REVRevision Table of Contents External Reset Sect ION 11 Watchdog Timer DescriptionInterrupt Characteristics Sect ION 13 Multi Mode Counter DescriptionSoftware Revision History Section OverviewDescription Manual OrganizationTechnical Support Symbols and Term inologySystem layout Overview SectionIntroduction Operating PrecautionsEquipment Using a Terminal Using a PCFirst Time Operation Uploading and Downloading ProgramsEditing programs and program ming hints Troubleshooting Where to GO from HereSaving a Program Saving ProgramsEprom W3 autorun jumperPreventing Autorun AutorunningLoading a Program Changing Eprom SizeAlternate Eproms CommandsBload BsaveCOM0 Serial Port Serial PortsCOM1 Serial Port RS-422/485 Operating Information Serial Ports SectionRS-422/485 Termination network Two wire RS-485 Accessing Serial BuffersMultidrop Network Disabling CONTROL-C Accessing COM0 and COM1Serial Port PIN OUT RXD CTS Checking the battery Battery BackupRAM Memory Changing MemoryStoring Variables in RAM Reserved MemoryBlock Data Transfer Assembly Language InterfaceDigital I/O Ports Digital and Opto PortsDigital Por t J3 Digital Port P6 Digital I/O CommandsHigh Current Port L8 Optically Isolated InputHigh Current Output Interfacing Digital I/O to an opto-module rack Interfacing to switches and other devicesDigital I/ O prog ramm ing exam ple Ls e Width Modulation PWM Conne ctor pin ou t J3 Digital and Opto Ports SectionCount Config LineLine Line BDate Setting Date and TimeM E Section Writing to the Display Connecting DisplaysProgramming Example Display Types Display Connector PIN OUTProgram explanation Keypad PortKeypad Port PIN OUT J5 Analog Input Connecting Analog InputsInitialization Overvoltage conditionsExamples u sing CON FIG AIN Differential ModeAcquiring Analog Data Noise Notes Temperature MeasurementAnalog Input Section Measuring Higher Voltages Data logging on a timer tickAmplifiers Converting Analog MeasurementsMeasuring 4-20 mA current loops Calibration External Reset Watchdog TimerOptically Isolated Interrupt Interrupt CharacteristicsProgram Example Optically isolated and TTL interrup ts GND ProgrammingLoad GateCOU NT0 Further Power Reduction Power ManagementProgram Examp le Power Management SectionTechnical Information Electrical SpecificationsMemory and I/O Bank MAP Mechanical SpecificationsJumper Descriptions Bank