- Iseries afp printer driver how to#
- Iseries afp printer driver pdf#
- Iseries afp printer driver driver#
- Iseries afp printer driver full#
HP have produced some very useful PCL reference material in the form of a 2-part PDF guide. I set up a separate record format for this
It's also a good idea to finish the printing with another reset command, ie E. Note the use of the PCL before the normal DDS, and also the use of "+ 1" for the field position.Ī* Set horizontal cursor position - *p100X For my needs I needed 100 units, so the DDS The command is *p, followed by the number of units across, followed by a capital X. Having setup the page defaults, I then used the column positioning PCL commands to get my text in exactly the right place on the page.
Iseries afp printer driver full#
So, following now is the full code I used for the record format that initialised the printer.Ī* Set font spacing to proportional - (s1P Some column positioning (to correspond with the pre-printed form I was using and that's about it really. For my project I needed to specify a proportional font, some margins, In short, loads, of which I have only used a few, as my needs were few. Value byte for byte using the ascii table and substitute into the hex string sent to the printer, like this. The number 1 is the value, and the letter E in this case is the terminator for the instruction. The ampersand and lower case letter L signify the instruction "set the top margin". The format for sending a "set top margin" command is as follows:Īgain, the code starts with the escape character. Let's set a top margin of 1, meaning 1/10 of an inch. This is more interesting in that we also get to send the printer a numeric value of our choice - a "variable" so to speak, although in our code this So let's try a more interesting example, setting the margin. Obviously "Reset all" is just an instruction to prepare the printer for what we really want. Keyword, we send these bytes of to the printer. Looking these codes up in our ASCII table reference we see that the escape key is 1Bh and the letter capital E is 45h. PCL defines this command as being made up of the escape key followed by a capital E. We've also learned out first PCL command, "Reset all". You can "conveniently" send this in the form of a hex string, an example of this is below: This sends a byte string without alteration IBM conveniently provide a mechanism to send data directly to a printer via DDS, using the keyword TRNSPY. How do I send codes to a PCL printer from my AS400 ? So, we can send PCL commands direct to the printer, without translation by the AS400, to achieve some of these goals. Things like mixing fonts on a page,ĭrawing boxes, etc are just not implemented. So why do you need to learn it ? Well, the AS400 without AFP on a SCS printer implements only a standard set of instructions. The AS400 itself via the device type does the conversion for you. Even when printing from your AS400 via a remotely attached TCP/IP writer,
Iseries afp printer driver driver#
When you print to your laserjet or deskjet from windows, the text, images, fonts etcĪre converted by the printer driver into a language format that the printer can understand. PCL is the printing language used by HP printers, and many others. Note that this article is intended for technical AS400 people, and the examples given cover the usage within DDS and RPG. The areas covered in this examples are just the basics for changing font, aligning column position, etc.
Iseries afp printer driver how to#
This article assumes that you know how to set up such a printer, and have already done so. You can use just a basic printer - I've used a HP deskjet - running asĪ SCS printer under TCP/IP to perform the actions below. This is one man's explanation of how to implement advanced printer functionality on your AS400 without the need to buy AFP or special printers.