Comunicacion con Impresora a 9600bits

phoenix70

New Member
Hola, amigos picaxe, he desarrollado muchas aplicaciones gracias a picaxe, entre ellas la conexion a una bascula a la cual le agrego al peso, fecha y hora, cabecera, y muchas otras cosas, estos datos los imprimo en una impresora epson o bematech serial a 1200 o 2400, el problema es que necesito hacerlo con una impresora termica que trabaja a 9600, fijos, y a esa velocidad mi programa se vuelve, loco, cambio a 8mhz,con setfreq m8, justo al mandar a imprimir y la impresora no hace nada hago lo mismo de la pc y si funciona, q estoy haciendo mal ?

 
 

slurp

Senior Member
google translation tools are useful....

"Hello, friends picaxe, I have developed to many applications thanks to picaxe, among them the connection to one tilts to which I add to the weight, date and hour to him, head, and many other things, these data I print in a printer serial Epson or bematech to 1200 or 2400, the problem is that I need to do it with a thermal printer that works to 9600, fixed, and to that speed my program becomes, crazy person, change to 8mhz, with setfreq m8, right when commanding to print and the printer does not do anything I do the same of the PC and if works, q I am making bad"
 

moxhamj

New Member
This question also got posted on the 24bit comms thread. Demonicpicaxeguy says serout can run at 9600. Which I think means that it can send data to a serial printer at 9600. But I don't know if this is in normal mode or overclocked...
 

hippy

Ex-Staff (retired)
The PICAXE can do 9600 baud after "SETFREQ M8". I'm not sure exactly what is or is not working though ...

¿Esto los trabajos/éste no trabaja?

PICAXE ---> 9600 ---> Thermal Printer
PC ---> 9600 ---> Thermal Printer
PICAXE ---> 9600 ---> PC
 

marcos.placona

Senior Member
Why do we need to make all the efforts going to a translator to understand what this guy is saying if he doesn't even bother about this? I mean, we can try to help him in spanish and he can't even try to post in english. It's noy too far from us having to translate some arabic or polish simbols.

Cheers
 

hippy

Ex-Staff (retired)
The way I see it is that if a person who doesn't speak English posts in their native tongue at least what they mean to say can be understood by anyone who does speak that language. If they post whatever Google translates it to, no one is entirely sure what was actually meant, or whether the poster really is as illiterate as the translation may appear to make them.
 

hippy

Ex-Staff (retired)
Why do we need to make the effort ?

We don't, but we can choose to, or not.
 

andrewpro

New Member
Ok, no offense to marcos, but that post really kinda irked me. Welcome to a global community.

As for the OP:

¿la impresora térmica necesita comandos especiales? ¿Para la disposición antes de imprimir?

I hope that's right. I had to babelfish some words I didn't know. Basically, asking if the thermal printer needs any special commands sent before printing, as in setup commands or whatnot.

If people with one language only wanted to help with the same language, you'd have...oh..say the dark ages. Yeah...if it wasn't for that period in time we'd be living on mars, I betcha....


--Andy P
 

phoenix70

New Member
Hello, don't I want to cause them problems, do I see that you fight because I wrote in Spanish, my English is not very good, can the printer thermal manage it perfectly from visual basic, and if the printer needs special characters, but do I know them, is my problem that alone the printer works at 9600bits, and when I make the change for 8mhz with the instruction setfreq m8, before printing for not affecting the times and retards programmed at 4mhz, does the picaxe become unstable, and doesn't the printer work, do I place another thermal old printer to 1200 bits and does this printer work perfectly until cut de paper with the command neccessary, do I want to work the command serout for 9600 for work with the printer thermal the bematech in venezuela, because this command doesn't work me to this speed?, in the 16877 in assembler is able to communicate it with the printer that passes with the picaxe?, another thing places a logical tip in the exit pin and I verify that certainly there are data, redirect these data to the pc and treatment of doing it in windows with hyperterminal or with the picaxe program and alone I see trash (characters ascii). forgive my English it is the best thing that I can make for the time being, thanks for help me......

 
 

andrewpro

New Member
Beware more babelfishing <img src="wink.gif" width=15 height=15 align=middle>

&#191;qu&#233; impresora de la marca de f&#225;brica y del modelo es &#233;l? Puede ser que necesite sacudidas de la mano del hardware, o puede ser que necesite la inicializaci&#243;n especial. Comprobar&#233; para saber si hay usted si usted desea.


And in english:

what brand and model printer is it? It might need hardware hand shakes, or might need special initialization. I will check for you if you want.


no se preocupe. Usted no est&#225; causando problemas. &#161;&quot;no estamos luchando&quot; debido a usted!

--Andy P
 

phoenix70

New Member
No necesita hand shakes, ya que con el mismo cable pero una impresora bematech mp20th funciona perfecta www.bematech.com, cuando coloco la impresora bematech mp2100th, es el problema porq solo se comunica a 9600, y cuando envio el comando a esa velocidad no hace nada, cuando cambio con setfreq m8, para poder hacerlo, estuve leyendo en internet, y el fabricante recomienda maximo 4800 bits que tan cierto es esto ?, otra cosa estas impresora poseen puerto paralelo, podria adaptar el programa de lcd para el puerto paralelo con componentes externos ?, es decir usar 4bits o en su caso 7 b

 
 

phoenix70

New Member
No necesita hand shakes, ya que con el mismo cable pero una impresora bematech mp20th funciona perfecta www.bematech.com, cuando coloco la impresora bematech mp2100th, es el problema porq solo se comunica a 9600, y cuando envio el comando a esa velocidad no hace nada, cuando cambio con setfreq m8, para poder hacerlo, estuve leyendo en internet, y el fabricante recomienda maximo 4800 bits que tan cierto es esto ?, otra cosa estas impresora poseen puerto paralelo, podria adaptar el programa de lcd para el puerto paralelo con componentes externos ?, es decir usar 4bits o en su caso 7 bits + strobe or busy ?, alqguna sugerencia para hacerlo por lpt ?

 
 

demonicpicaxeguy

Senior Member
in english:
Does not need hand shakes, since with he himself cable but a printer bematech mp20th works perfect www.bematech.com, when I place the printer bematech mp2100th, is the single problem porq communicates to 9600, and when shipment the commando at that speed does not do anything, when change with setfreq m8, to be able to do it, I was reading in Internet, and the manufacturer recommends maximum 4800 bits that so certain are this? , another thing these printer has parallel port, podria to adapt the program of LCD for the parallel port with external components? , that is to say, to use 4bits or in its case 7 bits + strobe or busy? , alqguna suggestion to do it by lpt?
 

demonicpicaxeguy

Senior Member
http://www.bematech.com/support/downloads/6723_KB_KC_KF_Rev1_0.pdf &lt;-- thats el thingo manual de la gu&#237;a de los programadores para esa impresora pienso que lo que tenemos aqu&#237; es un problema el emparejar simple de la velocidad cuando el picaxe est&#225; en 8mhz que est&#225; funcionando dos veces tan r&#225;pidamente as&#237; que en vez de 9600 deseas utilizar el serout con 4800bps que por lo que la impresora sea 9600 &#191;has conseguido un email address o un nombre de la mella de msn/yahoo?

english version below

http://www.bematech.com/support/downloads/6723_KB_KC_KF_Rev1_0.pdf
&lt;-- thats the programmers manual guide thingo for that printer

i think what we have here is a simple baud rate matching problem

when the picaxe is at 8mhz it's running twice as fast so instead of 9600 you want to use serout with 4800bps which as far as the printer is concerned is 9600

have you got an email address or an msn/yahoo nick name?

 

andrewpro

New Member
No lo intentar&#237;a con paralelo. Podr&#237;a trabajar, pero hay muchos de dificultades. Miraba para arriba el manual para la impresora MP2100th y dice que necesita se&#241;alar de RTS/CTS. &#201;sta podr&#237;a ser la raz&#243;n que usted no puede hacerle el trabajo. &#191;Adem&#225;s de eso, qu&#233; comandos son usted que env&#237;a la impresora, como en el c&#243;digo del picaxe el su usar? &#191;Y usted lo ha intentado que usaba otras velocidades?



I would not try it with parallel. It could work, but there are a lot of difficulties. I looked up the manual for the printer MP2100th and it says that it needs RTS/CTS signaling. This could be the reason you can not make it work. Besides that, what commands are you sending the printer, as in the picaxe code your using? And have you tried it using other baud rates?

--Andy P
 

marcos.placona

Senior Member
@hippy and andypro: Otimo, nao vejo nenhum problema com linguas latinas, ate porque consigo entende-las muito bem. So acho que para que possamos consultar os topicos no futuro, ficara mais facil se tudo estiver em ingles.
 

phoenix70

New Member
my msmn is newphoenix70@hotmail.com and the line of code for printer into bematech mp20ci is this
serout 6,n1200,(27,114,01,14,#b13,&quot;,PESO: &quot;,#b3,&quot;.&quot;,#b5,#b6, &quot; kg&quot;,27,114,0,20), and when will print in 9600 baud is
setfreq m8
serout 6,9600,(27,114,01,14,#b13,&quot;, PESO: &quot;,#b3,&quot;.&quot;,#b5,#b6, &quot; kg&quot;,27,114,0,20)
setfreq m4, remember that with other printer the mp20th work good, only 3 cables tx,rx,gnd without bridges



 
 

phoenix70

New Member
other question not only with the printer mp2100th, this case for the printer dont permited changed the velocity, is fixed to 9600, the picaxe work or not work to 9600 bits ? into manual or picaxe recommend work max to 4800

 
 

hippy

Ex-Staff (retired)
<code><pre><font size=2 face='Courier'>setfreq m8
serout 6,9600,(.....)
|^^^
|
`---- Error ! Wrong ! </font></pre></code> You need to use ...<code><pre><font size=2 face='Courier'>setfreq m8
serout 6,N4800,(.....) </font></pre></code> M4 * N4800 =&gt; 4800
M8 * N4800 =&gt; 9600

9600 ... No
4800 ... No
N4800 ... Yes/Sim.

Edited by - hippy on 01/03/2007 11:30:41
 

hippy

Ex-Staff (retired)
Marcos : If everyone spoke Esperanto we wouldn't have any problems <img src="smile.gif" width=15 height=15 align=middle> On the numbers front though, perhaps I should say Chinese ?

It's hard enough to get people to use the ISO standardised date format, so I'm not holding my breath.
 

slurp

Senior Member
translation tools can get us a long way...

I aways try to match the language of the forum but usually post english along side the translation - mainly to deal with the issues of poor translation as the other users may have an understanding of my language to make up the difference.

The internet is international so I don't get upset... usually there's something to learn <img src="wink.gif" width=15 height=15 align=middle>

regards,
colin
 

phoenix70

New Member
thanks hippy, do I arrive at the office and do I make the test, did I understand bad the translation of the manual, but porq the compiler doesn't hurtle an error?, if has made it would know that the error was in it lines her and has investigated or proven, you are right now if has logic that of multiplying the clock and the baudios, but I insist the compiler it should not accept this parameter, by the way very good your it paginates web

 
 
Top