In SX Microcontrollers, SX/B Compiler and SX-Key Tool, astro70 wrote: OH...I see, the chip has to be told how many characters are coming. So, if I wanted to send the "value" of a location in the SX memory do I need to change the command mode? If so, is there a list of these modes somewhere? What I am trying to do is write location $30 - $3F to a file on the memory stick with a space (CR) between the values so that I can copy them to excel. IF recv(0) = "e" THEN IF recv(1) = CR THEN ' Set long command mode SendChar "E" SendChar "C" SendChar "S" SendChar CR RecvStr ' Open file "TEST.TXT" for writing SendStr "OPW TEST.TXT" SendChar CR RecvStr RevData = $30 DO INC RevData ' Write to file "TEST.TXT" SendStr "WRF " SendChar 0 SendChar 0 SendChar 0 SendChar 3 'number of characters to be sent (2 plus CR) SendChar CR 'SendStr "TEST" SendChar RevData ' would like to send the value of this to the file on the memory stick SendChar CR RecvStr LOOP UNTIL revdata = $3F ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=266261#m266312 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)