Installation guide
LMU Users Guide
V1.0.6 December 10 2009
Copyright ©CalAmp DataCom Inc 2009
- 24 - CalAmp Proprietary & Confidential
4.7
The LMU is capable of storing some of its values to non-volatile memory so that they can be
restored after a power cycle. The following values may be stored:
Restoring values through a power cycle
• The values of all 16 Accumulators
• The states of all 16 PEG Flags
• The state (inside or outside) of all 32 PEG Zones
• Last known GPS position
• The current value of the PEG State variable (see PEG Programming Guide for
details)
These values can optionally be saved at two points
• Before a soft reset (i.e. AT$APP QUIT or the Application Restart PEG Action)
• On ignition off
This feature is collectively known as an Environment Restore and is controlled by S-Register
127. Bits 0-3 control which values are saved where each bit is associated to a specific value.
If the bit is set, the associated value is saved. If it is cleared, the associated value is not saved.
The bit-mappings for bits 0-3 are as follows:
• Bit 0 = The values of all 16 Accumulators
• Bit 1 = The states of all 16 PEG flags
• Bit 2 = The state (inside or outside) of all 32 PEG Zones
• Bit 3 = Last known GPS position
Bits 6 and 7 of S-Register 127 control when these values are saved. If bit 6 is set, then the
values are saved on a soft reset. If bit 7 is set, then the values are saved on an ignition off.
For example to save all four values on just ignition off, you would use the following
commands:
Save Accumulators:
AT$APP PARAM 1024,7,1,1
Save PEG flags:
AT$APP PARAM 1024,7,2,2
Save PEG Zones:
AT$APP PARAM 1024,7,4,4
Save the last known GPS position:
AT$APP PARAM 1024,7,8,8