5 sending hex codes, 6 testing via the line, Sending hex codes – Dascom TallyCom III Installation & Operators Guide User Manual
Page 12: Testing via the line

4.5 Sending Hex Codes
After you have defined an escape character you may send any printer command string using HEX
codes to the Printserver. Here is how this is accomplished ("%" is the defined escape character):
%% 1B 5C 31 32 %
Structure of a command string, where "%" is the defined escape character.
The string sent above is a command string. The two leading escape characters denote that the
following characters will be treated in pairs as HEX codes until the next escape character in the data
stream is encountered.
Between the two leading and the trailing escape characters, all spaces, IBM control codes and the
character "," (comma) are ignored. They may be inserted in the data stream to make it more readable.
Note: Only the characters 0-9 and A-F are allowed. Any other character may give unpredictable
results.
Another method of sending escape strings uses the apostrophe as a code to indicate that the
characters following the apostrophe is to be regarded as ASCII values in the commands. See the
following:
%%1B '\12'%
Structure of the same command, but with the apostrophe escape notation.
The notation shown above can only be used when sending command codes which can be found in an
ASCII character table. In the above notation, the command code 1B (HEX) is combined with the
apostrophe notation.
There is, however, one exception. All spaces to be included in the string must be sent as HEX 20, i.e.
if the data is "Printserver", the sequence should be sent as indicated overleaf:
%%'ida'20'LS'20'170%
Structure of a command including a space and sent using the apostrophe escape notation.
WARNING
These features should be used with care! If they are used to alter vertical format, horizontal
format or positioning, the system settings may no longer prove reliable.
4.6 Testing via the Line
Apart from the activating of the TEST key on the rear panel to generate a.o. a settings printout, tests
may also be selected via the line. This is accomplished by a special facility, Test Selection via the
Line. The syntax of a test command is shown below ("%" is the defined escape character.)
%T
Syntax of a Test command.
Four different tests may be run in this way. A list of the tests is shown below:
12