OPERATION
3-20 25364 Issue 8 March 2018
External Data
This menu is used to set up data transmission of variables from an external
PC to the printer.
The following properties are available for editing:
Default Text: Once the Use Default check box has been ticked, the user
can then enter any value.
Fixed Length: Select the check box to activate this feature.
Input Definition: This field can be used if the input device (i.e., scale) is
not compatible with the protocol used by the controller.
Four types of entries are supported:
(1) \xNN: A single character. NN is the key code of the character. Use this
form to input a character not found on the keyboard (for example,
SOH, ETB, STX and ETX).
(2) \vNN: NN characters to be printed.
(3) \dNN: NN characters as “don’t care”.
(4) Clear text: There must be a direct match between the text and the info
that the device sends.
NN is to be considered a number in the range from zero to 255 typed in as
hexadecimal. For example, to denote the number 77 (decimal), type in 4D
(hex).
Example:
The printer expects data in the following format:
[SOH]FillSerialVar=[STX]VarName[ETX],[STX]Value
[ETX][ETB]
This can be achieved by the following input definition:
\x01FillSerialVar=\x02Serial\x03,\x02\v06\x03\x17
Explanation:
\x01 (SOH = Hex 01)
FillSerialVar= (Must make an exact match)
\x02 (STX = Hex 02)
Serial (We assume that this particular variable is called “Serial”.)
\x03 (ETX = Hex 03)
(Must make an exact match)
\x02 (STX = Hex 02)
\v06 (The input data is exactly (Hexadecimal)6 characters)
\x03 (ETX = Hex 03)
\x17 (ETB = Hex 17)