This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== SetVal ==== Set value of a user-defined memory cell === Description === <code>SetVal( address, value )</code> Set 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. UPDATE since firmware 22070801: Expanded to 2048 cells. Only the first 512 are stored in NVM. === Parameters === | ''address'' | Address, 0-511 | | ''value'' | New value | === Return value === Returns the previous value of the cell. === Example usage === <code javascript> 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 </code> <wrap hi>NOTE: First appeared in firmware 21071901</wrap> ezeio2/scriptref/setval.txt Last modified: 2022-07-13 17:04by andreh Log In