gpsPower (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2, CX1, SX1, MX2 turbo/encore/warp, NX-200, NX-400, NX-900, LX2, LX5

Firmware version:

1.00 / 1.00.00


This function controls the power supply to the GPS receiver. By using this function, the GPS receiver can be switched off when not in use to save power. When the GPS receiver is switched on, it will take a number of seconds for it to acquire a new position. The duration of this period depends on how long it has been since the GPS receiver was last powered on.

 

 

Input:

power : BOOL

TRUE:

Turns on the power.

FALSE:

Turns off the power.

 

Returns:

None.

 

Declaration:

FUNCTION gpsPower;
VAR_INPUT
  power : BOOL;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Turn on power to the GPS module
gpsPower(power := TRUE);
 
BEGIN
  ...
END;
 
END_PROGRAM;