Installation guide
Keyword Reference Guide
MN1270 02.2002 109
NVFLOAT/NVF
Purpose:
To write to non-volatile memory.
Controllers Supported:
NextMove PCI NextMove PC NextMove BX MintDrive ServoNode 51
Format:
NVFLOAT ( location ) = <expression>
v = NVFLOAT ( location )
Attributes:
Controller Read Write Command Multi-
Axis
Scaled Default Range
NextMove PCI,
ServoNode 51
-8388607.0 ≤ x ≤
8388607.0
Description:
The NextMove PCI and ServoNode 51 controllers have an area of non-volatile RAM available for user
access. The
NVFLOAT keyword allows the reading and writing of floating point values to this user area
of non-volatile memory.
The data in this memory is retained when the card is powered down. The data stored is duplicated.
This allows the controller to determine if a write was in progress when power was removed. The error
erNON_VOLATILE_MEMORY_ERROR (37) will be returned if the data is corrupted.
The data must be read in the same format as it was written. Writing data to a location as a float and
reading it back as a long will not give the same data. Within Mint, it is recommended that
NVFLOAT is
used as all data is floating point.
On NextMove PCI, there are 3072 addressable locations accessed from 0 to 3071 inclusive.
On ServoNode 51, there are 1024 addressable locations accessed from 0 to 1023 inclusive.
Example:
REM Store the number of products and product length in NVRam
NVFLOAT (0) = productLength
NVLONG (1) = productNumber
See Also:
NVLONG
NVLONG/NVL
Purpose:
To write to non-volatile memory.
Controllers Supported:
NextMove PCI NextMove PC NextMove BX MintDrive ServoNode 51
Format:
NVLONG ( location ) = <expression>
v = NVLONG ( location )
Attributes:
Controller Read Write Command Multi-
Axis
Scaled Default Range
NextMove PCI,
ServoNode 51
-8388607 ≤ x ≤
8388607
Description:
The NextMove PCI and ServoNode 51 controllers have an area of non-volatile RAM available for user
access. The
NVFLONG keyword allows the reading and writing of integer values to this user area of non-
volatile memory.