ezeio2:scriptref:getval

This is an old revision of the document!


Get value of a user-defined memory cell

Description

GetVal( address )

Fetch the value of one of the user defined memory cells. There are 512 32-bit cells available. The values are stored in NVM, so they will remain through power loss/reset.

Parameters

address Address, 0-511

Return value

Returns the value of the cell.

Example usage

 
   new x;
 
   SetVal(100, 4711);  // Set cell with address 100 to value 4711
   x = GetVal(100);    // Read cell 100
 
   // x now has the value 4711

NOTE: First appeared in firmware 21071901

  • ezeio2/scriptref/getval.1626742767.txt.gz
  • Last modified: 2021-07-20 00:59
  • by andreh