Datamax-O'Neil Workstation series Programmer’s Guide User Manual
Page 39
Programmer’s Guide | 1
33
Thermal Printer Programmer’s Guide
PJL GPIO Write Test
Prior to performing the GPIO write test, the GPIO parameters in the database should be
set using either the front panel, PJL variables or by other means. The signal function for
all pins should be “None”. The signal type for all pins should be “High”. For pulse mode,
the “High Pulse” value should be used for output pins. The I/O configuration should be
set with an integer representing a bitwise value where first bit is pin 1, the second bit is
pin 2, etc. One is an input pin and zero is an output pin. Bits 8 – 15 are fixed at 1. For
example, if pins 1-4 are input and pins 5-8 are output, then the resulting value would be
65295 (1111111100001111).
Note:
Pins are coupled 1/2, 3/4, 5/6, 7/8.
To start the test, enter the following command:
@PJL PERFORM GPIOWRITE = n
@PJL EOJ
Where “n” is an integer representing a bitwise value and when the first bit is pin 1, the
second bit will be pin2, etc. One is ON state and zero is OFF state. Only output pins are
used.
For example, if pins 1-4 are output ON and pins 5-8 are input then the resulting value
would be 15 (00001111).
Note:
Pins are coupled 1/2, 3/4, 5/6, 7/8.
PJL CONFIG PRINTFILE
To print an internal user label file, issue the following command:
@PJL PERFORM PRINTFILE = “0:filename.pcl”
@PJL EOJ
Note:
The extension.pcl must be used in order to see the file listed under the internal
user label files on front panel-equipped printers.
PJL CONFIG Command
The custom PJL CONFIG command is used with various functions for printer
configurations. PJL password security in the JOB command protects against
unauthorized use of this command. Please refer to the HP PCL/PJL Technical Reference
Manual for more information on PJL security. These commands will perform an
immediate action when received and should not be part of a PCL print data stream.
The syntax of the command is as follows: