2.5.2 Method for Getting Printer Information The printer operation mode, the printer operation status, and the printer unique information are each received from the printer using a command. Commands that request information are generally defined as “printer information request commands”. Printer information request commands share properties and formats with command codes and parameters. The first parameter of the setting command indicates the in 2 alphanumeric characters. Commands that request information operate as control command. The second parameter of the setting command indicates in 1 alphanumeric character. ~H(CLR, P Gets the printing resolution.
~H(SMA, S Gets the printer operation status. ~H(IMP, S Gets the serial number. ~H(I MP, S Command code , Figure 2.5.2 Sample Code of a Printer Information request Command ~H(C , Gets the printer operation mode ~H(S , Gets the printer operation status ~H(I , Gets the printer unique information : Function type you want to get. Specified in 2 alphanumeric character. : Object you want to get. Specified in 1 alphanumeric character. The printer returns the response data based on the printer information request command. The response data is equal to the setting command that corresponds to the request command, and will take the command code , format.
Table 2.5.3 Response Data for the Printer Information Request Commands ESC/Label Command Reference Guide Rev. L Page 35 Information type Printer information Request Command Response data Printer operation mode ~H(C , ^S(C , ,value Printer operation status ~H(S , ^S(S , ,value Printer unique information ~H(I , ^S(I , ,value