I understand that is possibly/slightly off topic here, but it is to do with programming a dot matrix printer.
I am trying to generate a new character for on OKI Microline 5520, and am trying to use the command line for this.
The command I am trying to send to the printer is:
CHR$(27);%a;@;CHR$(28);CHR$(34);CHR$(65);CHR$(0);CHR$(65);CHR$(0);CHR$(28);
CHR$(34);CHR$(73);CHR$(0);CHR$(73);
which should create a CE
symbol instead of an @ character.
+-+-+-+-+-+-+-+-+-+-+-+
X X X X
+-+-+-+-+-+-+-+-+-+-+-+
X X
+-+-+-+-+-+-+-+-+-+-+-+
X X
+-+-+-+-+-+-+-+-+-+-+-+
X X X X
+-+-+-+-+-+-+-+-+-+-+-+
X X
+-+-+-+-+-+-+-+-+-+-+-+
X X
+-+-+-+-+-+-+-+-+-+-+-+
X X X X
+-+-+-+-+-+-+-+-+-+-+-+
28| 65| 65| 28| 73| 73|
|34 |0 |0 |34 |0
However, I can't seem to add/send this command to the printer, in a way it can understand.
i was trying the command within the command prompt:
net use Lpt1 \\ComputerName\\datFileName
but that didn't seem to work.
Would anyone have any advice on how I can send this command to this dot matrix printer?
As it turns out, there are several modes to these printers, and as such, it requires a specific hex string to be passed.
There are also different commands based on whether it is 9 or 24 pins, and as such, it takes a lot of battling with the documentation in order to find out which command to send.
I ended up using commands similar to these in order to write the command to memory.
The program looked similar to this, with the hex data being sent to the printer