516
[ESC+/G] Get Print Template Information
ESC /G ParameterHexadecimal code
<1B>
16
<2F>
16
< 47>
16
,a,n~n
Initial value Nil
When the power is OFF The set parameter is maintained.
Valid range within items The set parameter becomes invalid.
Valid range and term of
command
Valid range between items The set parameter becomes invalid.
[Function]
To recall the print templates data or print template names from the printer memory.
[Format]
</G>,a,n~n
• Parameter
a [Type of desired template data]
0 : Get current print template name
1 : Get all print template names
2 : Get all print templates
3 : Get standardized print template
4 : Get specific print template
n~n [Print template name]
Valid range (Template name) : 1 to 32 ASCII characters
This parameter n~n is needed when a = 4 was specified.
[Coding Example]
Recall all the registered template names from the printer memory
<A>
<CC>1
</G>,1
<Z>
Recall the print template with the template name “SATO Barcode”
<A>
<CC>1
</G>,4,SATO Barcode
<Z>
[Supplementary Explanation]
• To avoid incorrect response from printer, this command should not use in conjunction with other
commands.
• This command is valid only when the printer memory has at least one registered format.
• Print template name will be returned only when the desired template name is registered by </Y>
command together with the <YS> commands.
• Parameter ‘a’ will be set as ‘0’ if not assigned.