PROGRAMMER'S GUIDE Page 99
C
YBER
A
MP
380, COPYRIGHT MARCH 2002, AXON INSTRUMENTS, INC.
"E" EEPROM read/write/verify/serial#
Format
ATdERAn ssss llll Read llll ASCII characters commencing from location ssss
ATdERHn ssss llll Read llll bytes in ASCII Hex from ssss
ATdEWAn ssss TEXT Write TEXT starting from address ssss (0000=first byte)
ATdEWHn ssss BYTES Write BYTES in hex, starting from address ssss.
ATdEVn Verify probe EEPROM in channel n of device d
where
d = device # (0-9)
n = channel number (1-8) or "?"
llll = length count; must be exactly 4 digits including leading zeros
ssss = starting location; must be exactly 4 digits including leading zeros
Examples
Assume device 5 has an AI 401 probe plugged into channel 3. The command to read the first 8 bytes
would be:
AT5ERH3 0000 0008
Read 8 hex bytes from chan 3 from addr 0
Response:
4149333334202020>
ASCII "AI334 >"
AT5ERA3 0000 0008
Read same as above but in ASCII.
Response:
AI334 >
AT5EWA3 0123Hello
Writes ASCII "Hello" to 124th location
(0 = 1st location)
AT5EWH3 0000 31320D
Writes "12<carriage return>" to location 0
AT2EV4
Verifies probe EEPROM in device 2, channel 4
Response:
EEPROM OK
If probe on channel 4 responds appropriately
Response:
019 EEPROM FAULTY
A possible error message, if a fault at decimal
location 019
Notes
The write command (ATdEW) writes all text up to the carriage return, but does not write the carriage
return. The length is calculated automatically from the text string.
Users should not write arbitrarily to the first 128 bytes in the probe EEPROM. These are reserved for
standard information, as described in the EEPROM section on page 57.
The second 128 bytes in the probe EEPROM are available for arbitrary use.
Commentaires sur ces manuels