[ESC+/G] Get Print Template Information
CL4NX
CL6NX
CL4NX-J
CL6NX-J
PW208/PW208m
PW208NX/PW208mNX
FX3-LX
CT4-LX/HC4-LX
PW4NX
LR4NX-FA
S84NX/S86NX
CL4-SXR
CL6-SXR
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| /G | <2F>16<47>16 |
Parameter
,a,n...n
Initial value
Nil
Valid range and term of command
| When the power switch is OFF | The set parameter is maintained. |
| Valid range within items | The set parameter becomes invalid. |
| 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.
- For (a=1), the character ',' (HEX: 2C) will act as separators between each reply template name. (Note: No separator will be used, if there is only one template name installed inside the memory)
- Printer will be response "ACK" back to host PC if operation success, else printer will be response "NAK" to the host PC if operation fail.
- In case the user gave same name to different formats, the </G>,4 command will recall the template with the smaller format number.