Installation guide
Programming Commands 133
NVRBYTE Miscellaneous Command
ACTION: Stores or returns the byte value in NVR memory.
PROGRAM SYNTAX: NVRBYTE(byte)= expression
NVRBYTE(byte) - used in an expression
REMARKS: The byte value range is 1 - 8192. The expression must be a value be-
tween 0 and 255.
When using this command care must be taken not to alter elements used
by the NVR and NVRBIT commands.
The NVR array is used for non-volatile storage. The array consist of
2048 elements, 8192 Bytes or 65536 Bits. Thus, there are 4 bytes in
each word.
The array element (word) being addressed is calculated as follows: ele-
ment= ((int) (number + 3) / 4)
examples: Byte 1 addresses (element 1 Byte 1) MSB
Byte 2 addresses (element 1 Byte 2)
Byte 3 addresses (element 1 Byte 3)
Byte 4 addresses (element 1 Byte 4) LSB
Byte 5 addresses (element 2 Byte 1) MSB
EXAMPLES: NVRBYTE(8192)=255
sets MSB byte = 255 in element 2048
NVRBYTE(8189)=0
sets LSB byte= 0 in element 2048
OPTION DECLARE Miscellaneous Command
ACTION: This option requires that all local variable be declared as REAL or
STRING variables.
PROGRAM SYNTAX: OPTION DECLARE
Arrays are not required to be declared since the DIM statement declare
them as REALS or STRINGS.
If this option is not used the non-arrayed local variables are not required
to be declared but simply used in the program.
EXAMPLES: OPTION DECLARE
REAL a,b,c,d,e,f ‘ variables are declared
STRING a$,b$,c$,d$,e$,f$ ‘ variable strings are declared










