Problem with TABLE and READTABLE

kolber

New Member
Hello everyone, i have 18M2+ and next code:

Code:
#Picaxe 18M2					   			
#Terminal 38400							  
setfreq M32 									
pause 1000

'Definice promennych
'-------------------------------------------------------------------------
symbol Lrok = b5  						
symbol x = b0  						

'Zapis tabulky dat letniho casu do Table 
'--------------------------------------------------------------------------
table 0,(14,10,10,10,15,03,29,02,15,10,25,01,16,03,27,02,16,10,30,01,17,03,26,02,17,10,29,01,18,03,25,02,18,10,28,01,19,03,31,02,19,10,27,01,20,03,29,02,20,10,25,01,21,03,28,02,21,10,31,01)

pause 2000
gosub letni_cas1
stop

letni_cas1:
	for x = 0 to 60   														
		readtable x,Lrok	
		pause 100   			      		
		sertxd ("Lrok = ",Lrok,CR,LF)
	next x

return

end
View attachment ~Hodiny v.7.4.test.bas

And problem is, that number 10 in data for Table nondisplay. All number work, only 10 no.
Please where is problem?

Ahoj Jan
 
Last edited:

srnet

Senior Member
You might want to say what you mean by 'only 10 no'.

Is something not working, and if so what do you think should happen and what is happening ?

The sequence your sending to the serial port does look odd, 14,10,10,10 is shift out, line feed, line feed, line feed. Had you intended to do that or did you want the numbers to appear on screen such as;

Lrok = 14
Lrok = 10
Lrok = 10
Lrok = 10
 
Top