9-Transact Template Language Epic Edge™ OEM Integration Manual
100-14444 Rev B August 2018 Page 157
Notes
• Any region/template n can be redefined by sending a new definition surrounded
by the Start/End definition commands. If there is no data between these
commands, definition n is deleted.
• If n = 0, the command is ignored.
• The End definition command will be accepted, even if the parameter n does not
match the parameter in the preceding Start definition command. The definition
will be stored using the n parameter in the Start definition command.
• If the Execute Region/Template (GS O n) command is received while a definition
is being recorded, the definition will be aborted and nothing will be saved for that
definition.
• All commands/data received during a definition are executed normally, in addition
to being recorded in the definition.
• Predefined ROM; these are copied into RAM on power-up. They may be used
as is, or they may be redefined with this GS M n command, as desired.
• Print data may be preloaded in the region definition (static data) or sent from the
host during execution ( dynamic data)
GS Q – Query Definition
The query definition command may be used to test for the presence of a region/template
definition in RAM. It can also be used to calculate the length of a region/template
definition and the amount of free space left in the definition buffer
Description
This command returns two bytes (high byte first) indicating the number of data bytes
stored in region/template definition n, except for the two following cases:
• If definition n is undefined this command returns <0><0>.
• If n = 0, this command returns the free space in the definition buffer, i.e., the total
number of bytes that are still available for region/template definitions.
Expression