Yazıcıyı Geri Sardırma

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Kullanıcı avatarı
aslangeri
Moderator
Mesajlar: 4322
Kayıt: 26 Ara 2003 04:19
Konum: Ankara
İletişim:

Yazıcıyı Geri Sardırma

Mesaj gönderen aslangeri »

Merhaba...

Hepinize kolay gelsin.
Yazdığım program sürekli formda çıktı veriyor. Çıkıyı direk yazıcıya gönderiyorum (assignprn olayı). Çıktıyı aldıktan sonra sürekli form yukarda kalıyor (ki kağıdı yırtmak için bu gerekli) bir sonraki yazdırma işleminden önce kağıdı geri sardırmam gerekiyor.

Yardımcı olabilirseniz sevinirim.

Kullandığım yazıcı Panasonic KX-P1150
Duyduğun Şeylerin Söylediklerim Olduğuna Eminim Ama
Anladığın Şeylerin Anlatmak İstediklerim Olduğuna Emin Değilim
DotCom
Kıdemli Üye
Mesajlar: 1696
Kayıt: 11 Tem 2003 10:30
Konum: İzmir
İletişim:

Mesaj gönderen DotCom »

Daha kolay yolu varmıdır bilemiyorum. ama lpt portunun control pinlerine değer göndererek sanırım bunu yapabilirsin. eve gelince , hangi kontrol pini olduguna bakarım.

Kolay gelsin...
Kullanıcı avatarı
gkimirti
Admin
Mesajlar: 1956
Kayıt: 02 Eyl 2003 04:44
Konum: İstanbul

Mesaj gönderen gkimirti »

printere has özel komutlarla bu işlem yaptırılabilir diye dusunuyorum cunku hic denemedim
eger programming guide gibi birseyleri varsa muhtemelen oralarda yazar
ÜŞENME,ERTELEME,VAZGEÇME
Kullanıcı avatarı
m_ekici
Kıdemli Üye
Mesajlar: 563
Kayıt: 11 Haz 2003 06:49
Konum: Adana
İletişim:

Mesaj gönderen m_ekici »

Daha önce yazıldı. formu ararmısın
Kullanıcı avatarı
aslangeri
Moderator
Mesajlar: 4322
Kayıt: 26 Ara 2003 04:19
Konum: Ankara
İletişim:

Mesaj gönderen aslangeri »

Daha kolay yolu varmıdır bilemiyorum. ama lpt portunun control pinlerine değer göndererek sanırım bunu yapabilirsin. eve gelince , hangi kontrol pini olduguna bakarım.
bende bilmiyorum :D lpt örnek kodla gönderirsen/gönderebilirsen :oops: sevinirim.
eger programming guide gibi birseyleri varsa muhtemelen oralarda yazar
öle bişi görmedim. ama olması gerekli diye düşünüyorum
Daha önce yazıldı. formu ararmısın
zahmet olacak ama bulup linkini verirmisin. Binaenaleyh ben bulamadım. :oops:
Duyduğun Şeylerin Söylediklerim Olduğuna Eminim Ama
Anladığın Şeylerin Anlatmak İstediklerim Olduğuna Emin Değilim
DotCom
Kıdemli Üye
Mesajlar: 1696
Kayıt: 11 Tem 2003 10:30
Konum: İzmir
İletişim:

Mesaj gönderen DotCom »

@Merhabalar :

Pin no Kısaltma Açıklama
01 /STROBE Strobe
02 D0 0 numaralı data biti
03 D1 1 numaralı data biti
04 D2 2 numaralı data biti
05 D3 3 numaralı data biti
06 D4 4 numaralı data biti
07 D5 5 numaralı data biti
08 D6 6 numaralı data biti
09 D7 7 numaralı data biti
10 /ACK Acknowledge
11 BUSY Busy
12 PE Paper End
13 SEL Select
14 /AUTFD Autofeed <<<====== Sanırım Bu
15 ERROR Error
16 INIT Initialize
17 SELIN Select In
18 GND Toprak
19 GND Toprak
20 GND Toprak
21 GND Toprak
22 GND Toprak
23 GND Toprak
24 GND Toprak
25 GND Toprak


Arkadaşım yukarıda gösterdiğim gibi 14 numaralı pin autofeed sanırım geri sardırma işinede bu yarıyor. yalnız bu pin e veriyi nasıl göndereceğini bulamadım data pinlerini biliyorum da , fakar 14 nolu pine gönderemedim.

Salı günü kontrol sistemleri dersim var hocaya sorucam. ayrıca pazartesi görürsem pazarteside sorarım.

Yukarıdaki Listeyi aldığım Site Adresini Vereyim. İlgini çekebilir belki...

http://www.metu.edu.tr/~e127484/lpt/lpt1ders1.html


Kolay Gelsin...
Kullanıcı avatarı
aslangeri
Moderator
Mesajlar: 4322
Kayıt: 26 Ara 2003 04:19
Konum: Ankara
İletişim:

Mesaj gönderen aslangeri »

Bir deniyeceğim teşekkürler.
Duyduğun Şeylerin Söylediklerim Olduğuna Eminim Ama
Anladığın Şeylerin Anlatmak İstediklerim Olduğuna Emin Değilim
Kullanıcı avatarı
mrmarman
Üye
Mesajlar: 4741
Kayıt: 09 Ara 2003 08:13
Konum: İstanbul
İletişim:

Mesaj gönderen mrmarman »

Selam...

- Bende de bir zamanlar Panasonic KXP-1180 vardı..

- Onun kitapçığından faydalanıp İleri geri feed ve ileri geri MicroFeed yaptırabiliyordum. Tabi Dos'ta ve BASIC dilinde...

- Dil burada önemli değil, ESC kodlarıyla yapılıyordu... LPT1'e Ascii(0) + 'E' gibi kod göndermesiyle gerçekleşiyordu.... Bu kodlara printer'in kitabından bulmuştum.. Siz de kitabını bir inceleyin derim...

// Edit... Ascii(0) değil de Ascii(27) de olabilir...
En son mrmarman tarafından 10 May 2004 11:01 tarihinde düzenlendi, toplamda 1 kere düzenlendi.
Resim
Resim ....Resim
Kullanıcı avatarı
aslangeri
Moderator
Mesajlar: 4322
Kayıt: 26 Ara 2003 04:19
Konum: Ankara
İletişim:

Mesaj gönderen aslangeri »

:N( :N( :N( :N(

linki inceledim. vatandaş sadece databitlerini kullanmış.
diğer pinlere nasıl gönderecez bide yazıcıdan yazıcıya fark ederse :N(
sanırım biraz daha araştırma yapmam gerekiyor.

hocanın vereceği cevabı bekliyorum.
Teşekkürlerimib bir borç bilip peşinen teşekkür ediyorum.
Teşekkürler.
Duyduğun Şeylerin Söylediklerim Olduğuna Eminim Ama
Anladığın Şeylerin Anlatmak İstediklerim Olduğuna Emin Değilim
Kullanıcı avatarı
mrmarman
Üye
Mesajlar: 4741
Kayıt: 09 Ara 2003 08:13
Konum: İstanbul
İletişim:

Mesaj gönderen mrmarman »

Tekrar selam...

- Bir linkte şöyle ifade edilmiş...

Ref : http://groups.google.com.tr/groups?hl=t ... om&rnum=10
Pulling out my old grandaddy on serial _stuff_, the NBS Technical
Guide to Computer-Communications Interface Standards, and perusing
it for tidbits ....

what follows is longish, if you want to skip trivia.

------

the document refers to ISO R646, which led to ANSI X3.4 which is
also known as the American Standard Code for Information Exchange
(ASCII), and with the clear proviso that the code is constantly
being revised, and this document refers to ASCII-68, the current
version when it was printed in 1974. Also refers to the federal
FIPS-1 standard, which specifically interprets line feed somewhat
differently.

serial by bit, low order bit first. even parity, seven bits for
async, odd parity and seven bits for synch.

on to characters. the 32 ASCII control characters are divided
into communication controls, information separators, format
effectors, device controls, code extension controls, and other
controls (gee whiz, they always leave an out, don't they)

communication controls ... ten characters .. SOH, STX, ETX, EOT,
ENQ, ACK, DLE, NAK, SYN, ETB. designed to control or facilitate
transmission of information over communication links. more to
follow.

information separators ... five characters, File separator (FS),
Group separator (GS), Record separator (RS), and Unit separator
(US). The space character (SP) is also considered part of this
group, and they are placed so as to be contiguous with the space
character (hex 20).

format effectors ... six characters ... BS, HT, LF, VT, FF, CR.
these control the layout or positioning of information in printing
and display devices. they can be further split into horizontal
(BS, HT, and CR) and verticle (LF, VT, FF). often a source of
problems in terminal compatibility, so discussed further ....

BS ... "controls movement of the printing position one printing
space backward on the same printing line (applicable also to
display devices)" the definition is written regarding printing
devices, and thus overprinting is implied. the specific usage is
in the expansion to ISO standards, where such things as
diacritical marks may require usage of the BS, and is indeed
specifically mentioned in ISO R646. [note that almost no video
terminal acts this way .. rbd]

HT .. horizontal tabulation "controls the motion of the printing
position to the next of a predetermined of a series of positions
along the same line" no provision is made for setting or clearing
these tab stops though.

CR .. "controls the motion of the printing position to the first
prinitng position on the same printing line"

LF .. "controls the motion of the prinitng position to the next
prinitng line" note that specific horizontal position is not
specified. however it goes on "where approriate, this character
may have the meaning 'New Line' (NL), moving the prinintg position
to the first prinitng position on the next line. this requires
agreement between sneder and receiver" the federal standard
specifically omits this portion. a proposed (as of 1974) revision
would assign NL as primary usage,here, and LF as secondary.

VT ... vertical tab .. "movement of the printing position to the
next in a series of predetermined printing positions". as in LF,
no specific mention of horizontal postion but often taken as
meaning dfirst position on that line, as in NL.

FF ... form feed ... "controls the motion of the printing position
to the first predetermined printing line on the next form or
page". again, horizontal positon not specified, but purposed as
first position in the revision.

and on.

Device controls ... DC1 (XON or reader on), DC2 (TAPE or punch
on), DC3 (X-OFF or reader off), DC4 (barTAPE or punch off).
defato standards for the mentioned functions. [and as we all know,
XON/XOFF is used for flow control frequently .. rbd]

Code Extension controls ... SI, SO, and ESC.

Other controls ... NUL, BEL, CAN, EM, SUB, DEL (strictly speaking,
DEL is not considered a control character).

NUL is used to
accomplish media fill or time fill. it can be inserted or removed
without changing information content, but it may affect layout or
control of equipment.

BEL ... call for attention. it may control alarm or attention
devices.

CAN ... cancel .. the data it accompanies is in error. specific
usage must be defined for the application.

EM .. .end of medium. may be used to indicate physical end, or
the end of the wanted portion of data.

SUB ... substitute ... a character that may be substituted for one
known to be in error or invalid. the exact usage is undefined.

DEL .. delete .. intended to erase or obliterate and erroneous or
unwanted character in punched tape by overpunching. current
standards have this functioning quite similar to the NUL ie time
fill.

graphical representations are also specified for all these
charaters.

escape sequences for code extension .. rules .. control characters
and DEL are illegal in escape sequences. column 2 is considered
intermediate characters (puncuation .. SP thru /) the rest are
final characters, separated into groups for private and
stndardized usage and some dicussion of specific sequences.

Now, the communication control characters ... messages may be
split into block, and may be further split into headers and texts.
Every block begings with a SOH if there is a header, or and STX
otherwise. blocks other than the last (in a multiblock message)
are terminated by an ETB. the last block of a message (including
a one block message) is terminated with ETX. this gives a flavor
of the usage of thes e characters, with the following meanings:

SOH .. start of heading
STX .. start of text
ETX .. end of text
EOT .. end of transmission
ETB .. end of block
ENQ .. enquire (request for response) [which response could be
refered to as the answerback string in ancient TTY33 .. rbd]
ACK .. positive acknowledge
NAK .. negative acknowledge
SYN .. synchronous idle
DLE .. data link escape

------

there .. more than most anyone wants to know, but less than there
is to know (like everything). I included all this because it may
interest some to see where the usages of some of these specific
characters derived from. I am not so old that I ever worked on
model 33 Teletypes (though one might think so from the age of this
material), though I did have to punch and load tapes on those
mechanical beasts when I was a newby tech. I was smart enough to
yell for help when they broke! Anyone who has looked at the
Xmodem protocol may have some insight into why they chose some of
the control characters they did (was that Ward Christanson?? ...
wow, one of the first BBSes ever).

--
Richard Dell
Resim
Resim ....Resim
Kullanıcı avatarı
mrmarman
Üye
Mesajlar: 4741
Kayıt: 09 Ara 2003 08:13
Konum: İstanbul
İletişim:

Mesaj gönderen mrmarman »

Selam....

- Şimdi birşey hatırladım... Aradan 10 yıl geçti hatırlamam bile mucize...

- Bendeki Panasonic yazıcının iki emulasyon modu vardı.. Birisi IBM Proprinter diğer Epson Printer... ileri geri linefeed olayını IBM mode iken yapamamış, EPSON mode iken yapabilmiştim... Bu önemli nokta belki senin yazıcıda da önemli olabilir... Yazıcı üzerinde, kafanın hareket ettiği bölgenin altında şeffaf plastik bir naylon kapakçık altıda Dip Switch'ler vardı oradan değiştiriliyordu....
Resim
Resim ....Resim
Kullanıcı avatarı
aslangeri
Moderator
Mesajlar: 4322
Kayıt: 26 Ara 2003 04:19
Konum: Ankara
İletişim:

Mesaj gönderen aslangeri »

ve aleyküm selam üstad.
ingilizcem metni çevirmeye yetmedi. :oops:
Yazıcının kitapçığı elimde yok. :cry:
Duyduğun Şeylerin Söylediklerim Olduğuna Eminim Ama
Anladığın Şeylerin Anlatmak İstediklerim Olduğuna Emin Değilim
Kullanıcı avatarı
mussimsek
Admin
Mesajlar: 7603
Kayıt: 10 Haz 2003 12:26
Konum: İstanbul
İletişim:

Mesaj gönderen mussimsek »

aslangeri yazdı: Yazıcının kitapçığı elimde yok. :cry:
yüksek ihtimal internetteki sitesinde vardır. Yazıcının Türkiye temsilcisi ve yazıcıyı üreten firmanın sitelerine bakın. Adresleri bilmiyorsanız : google.com

Kolay gelsin.
Kullanıcı avatarı
mrmarman
Üye
Mesajlar: 4741
Kayıt: 09 Ara 2003 08:13
Konum: İstanbul
İletişim:

Mesaj gönderen mrmarman »

- Yedeklerimden dosyayı çok zor buldum, CD'yi bir görseniz, 10 yıllık CD, mantar oluşmuş gibi üzeri nokta nokta... Ama sorunsuz okudu... TDK marka..
- Neyse konuya geleyim...

- Şu Epson Mode olayını printer üzerinden hallettiyseniz delphi'ce yazdığım ama yazıcı olmadığı için denemediğim aşağıdaki kodu deneyin bakalım...

Kod: Tümünü seç

var
  Dosya : Textfile;
begin
  AssignFile(Dosya, 'LPT1');
  ReWrite(Dosya);
  WriteLn(Dosya, #27#106#49); // ESC+"j"+"1"
  CloseFile(Dosya);
end;
- Bu kod yazıcıyı kesin 1 satır geri sardıracaktır herhalde... (vizontele bölüm 1 :) )
Resim
Resim ....Resim
Kullanıcı avatarı
aslangeri
Moderator
Mesajlar: 4322
Kayıt: 26 Ara 2003 04:19
Konum: Ankara
İletişim:

Mesaj gönderen aslangeri »

bende biraz önce panasonic in sitesine baktım. yazıcının teknik özelliklerini vermişler onun haricinde bir şey bulamadım
mrmcop un vermiş olduğu kodu deniyeceğim.
Duyduğun Şeylerin Söylediklerim Olduğuna Eminim Ama
Anladığın Şeylerin Anlatmak İstediklerim Olduğuna Emin Değilim
Cevapla