gsmPowerLP (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.02 / 1.00.00


This function controls the power supply to the on-board cellular engine. By using this function, the VPL program can switch on and off the cellular engine to save power. Unlike gsmPower, this function is operating the engine on a slower communication speed - thus enabling the use of advanced power management functions such as pmSetSpeed.

The bandwidth when using a mobile network will be lower when the engine is switched on by using this function rather than gsmPower.

 

 

Input:

power : BOOL

TRUE:

Turns on the power.

FALSE:

Turns off the power.

 

 

Returns: INT

Same return codes as gsmPower.

 

Declaration:

FUNCTION gsmPowerLP : INT;
VAR_INPUT
  power : BOOL;
END_VAR;

 

 

Example:

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