Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual
Page 53
BASIC PROGRAMMING GUIDE
2-44
PROG
FPROG
Syntax:
PROG expr
FPROG 0
Where: expr = programming command
Function:
Clears or saves program to CPU flash and enables autorun on power up or reset
Mode:
Command
Use:
FPROG 0
DESCRIPTION
This group of commands erase and save basic programs to CPU flash EPROM, depending upon the
expression following the command. They operate differently than Basic-52 due to the flash in the CPU. Not
all original Basic-52 programming features are available.
FPROG0 erases all basic programs in CPU flash.
PROG creates a programming slot and copies the program in RAM to CPU flash. After executing this
command, you will have a number and address returned similar to below.
>prog
1
8013H
You should then execute a ROM 1 statement to continue to enter a program or run it.
PROG 0 disables program 1 from autorunning on power up or reset.
PROG 2 enables program 1 to autorun on power up or reset.
RELATED
NEW, ROM, RAM