READ location,variable,variable, WORD wordvariable
Location - is a variable/constant specifying a byte-wise address (0-255).
Variable - receives the data byte read.To use a word variable the keyword WORD must be used before the wordvariable).
Read EEPROM data memory byte content into variable.
The read command allows byte data to be read from the microcontroller's internal data memory. The contents of this memory is not lost when the power is removed. However the data is updated (with the EEPROM command specified data) upon a new download. To save the data during a program use the write command.
The read command is byte wide, so to read a word variable two separate byte read commands will be required, one for each of the two bytes that makes the word (e.g. for w0, read both b0 and b1). With the PICAXE-08, 08M, 08M2, 14M, 18, 18M and 18M2 the data memory is shared with program memory. See the EEPROM command for more details.
When word variables are used (with the keyword WORD) the two bytes of the word are saved/retrieved in a little endian manner (ie low byte at address, high byte at address + 1).