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
16
of
35
LMU-1300 Training Guide
Revision & Date
0.8–09/22/2020
5.4
Multiple Modifiers
PEG2 offers the ability to use multiple modifiers for specific Triggers, Conditions or Actions. This
makes it easier to use some existing PEG actions where there was a need to bit mask one
modifier, or use two PEG actions to satisfy one function (like copy accumulator). See below for a
few examples of how multiple modifiers can be utilized in a PEG2 script.
Trigger/Cond/Action Definition
Modifier 0
Modifier 1
Update End Trigger
(Code 61)
An update has completed.
PEG1 single modifier mapping: Bits
0-3=File Type, bits 4-7 = Device
Type
Device Type
File Type
Zone State
Condition (Code 40)
True when current location is
inside (0) or outside (1) the Zone
identified by Zone# and the Zone is
enabled.
PEG1 single modifier mapping:
Inside (bit7 of is 0), Outside (bit7 is
1), Zone Identifier (bits 0-6).
Current Location
(inside/outside Zone)
Zone#
Copy Accumulator
Action (103)
Copies value in Accum Source into
Accum Destination
PEG1 single modifier mapping:
Upper 4 bits = Source, Lower 4 bits
= Destination
Source Accum
Destination
Accum