View Single Post
Old 24-02-06, 05:30 PM   #1
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default IT - Printer Escape Comands

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
TSM is offline   Reply With Quote