Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).![]() |
![]() |
|
Thread Tools |
![]() |
#1 |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]()
The last time i had to worrey about doing printer escape commands was on a nix box about 4 years ago. In that time i have not done it so have forgotten realy how to do it.
Basicly i need to send some custom commands to a ND2700 (dot matrix) printer to do some stuff. This is the sequence: ESC [ P3 ; P0 SP r P being just single value like 3 which gets converted to 33 hex etc.. I put it first into HEX, but our finance system only accepts decimal so i converted it to. HEX: 1B 5B 33 3B 30 20 72 DEC: 027 091 051 059 048 032 114 I put this in a text file then do the folowing command: COPY nd.txt LPT2 /b All it does it print out the sequence instead of actualy doing what i want it to do (our printer can automaticly load diffrent types of paper into it). Any ideas?
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
![]()
wha.......
![]() ![]() |
![]() |
![]() |
#3 | |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]() Quote:
![]()
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
|
![]() |
![]() |
![]() |
#4 | ||
Guest
Posts: n/a
|
![]() Quote:
|
||
![]() |
![]() |
#5 | |||
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]() Quote:
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
|||
![]() |
![]() |
![]() |
#6 |
Guest
Posts: n/a
|
![]()
try dropping the /b
afaik your trying to send ascii commands to the printer, the /b may just confuse the issue .... but I'm probably wrong ![]() PM the txt file if you want, two heads better than one and all that |
![]() |
![]() |
#7 | |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]() Quote:
all the text file has is one of these lines (without the DEC/HEX bit): Code:
HEX: 1B 5B 33 3B 30 20 72 DEC: 027 091 051 059 048 032 114
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
|
![]() |
![]() |
![]() |
#8 | |
Guest
Posts: n/a
|
![]() Quote:
I get Hex: 1B 5B 50 33 3B 50 30 53 50 72 Dec: 027 091 080 051 059 080 048 083 080 114 P seems to be missing at the start, and the ends different ... worth a try? |
|
![]() |
![]() |
#9 |
Guest
Posts: n/a
|
![]()
I remember doing this years ago, but I don't have the doc's for it anymore. Though I could have sworn you need to set some jumpers so that it can be updated. Then set them pack for normal printing, I know I wasn't happy when some fool reset the printer and I had to sort the paper types out again.
|
![]() |
![]() |
#10 |
Guest
Posts: n/a
|
![]()
Ah, Newbury Data - good printers, or they were 20 years ago when I last fiddled with one. Looking at the control codes you're trying, looks like it's doing Epson emulation, which seems to be an option. There's an Epson ref. manual here. It's a PDF file. Bin control looks like Esc EM - pg C-157. The EM code has a decimal value of 25, so a bin select command is just 3 bytes long. The best thing to use to create the file is [shock, horror], good old EDIT. You can enter a control code by typing a Ctrl-P first. Esc is Ctrl-[, EM is Ctrl-Y. So, at a command line, invoke EDIT with your target file name. Then enter ctrl-P, ctrl-[, ctrl-P, ctrl-Y, n, where 'n' is the ascii bin number.
Your COPY /b is what I'd do too. |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Duff printer cartridge? | missyburd | Idle Banter | 10 | 09-05-09 02:09 PM |
anyone need a printer? | CoolGirl | Soho Massive | 3 | 09-03-09 02:57 PM |
printer woe | Quiff Wichard | Idle Banter | 2 | 14-08-08 11:14 AM |
Lucky escape | Lozzo | Bikes - Talk & Issues | 6 | 30-03-08 08:13 PM |
'Puter/Printer help please | TT Dee | Idle Banter | 14 | 14-10-07 12:24 PM |