COMPANY CONFIDENTIAL: CalAmp reserves all rights to these documents and any information contained therein.
Page
Reproduction use or disclosure to third parties without express permission is strictly prohibited. ©2020 CalAmp
17
of
35
LMU-1300 Training Guide
Revision & Date
0.8–09/22/2020
Example:
“I want to copy Accumulator 10 into Accumulator 22 every second”
PEG1
PEG2 Example
Not possible using PEG Action 103 (Copy Accum).
Limited to 4 bits (accum 0-15)
Possible with this PEG2 line:
T18,5;A103,10,22
Using PEG Action 124 (Select Dest.) & 125 (Copy to
Dest.):
120500007C160000
120500007D0A0000
Possible with one PEG2 line:
T18,5;A103,10,22
5.5
PEG1 -> PEG2 Conversion
The latest version of LMU Manager offers a PEG1-PEG2 conversion export feature so that an
existing PEG1 script can be easily converted into a PEG2 script to avoid the need of re-writing an
existing script.
Note: A PEG1->PEG2 conversation does not optimize how PEG resources would be used if the
script were to be written natively in PEG2. For example, the ability to have a complex set of
conditions on one PEG2 line is not able to be leveraged unless done manually by the script writer.
As a result, no PEG lines are being saved during the conversion.
Converting from PEG1 to PEG2, it is a two-step process.
Step1: Convert PEG1 script file to an LMU 8-Bit PEG1 script file:
o
Load PEG1 Script to Convert
o
Select “Export” -> “Convert (*.csv)” selection
o
Press OK on dialog boxes and Save File as CSV
Step2: Convert a PEG1 script file into an PEG2 script file
o
Load PEG1 script to convert (from Step 1)
o
Select “Export” -> “PEG2 format (*.pg2)” selection
o
Press OK and Save File