Device-TLSPrinter

 view release on metacpan or  search on metacpan

lib/Device/TLSPrinter.pm  view on Meta::CPAN


=over

=item *

C<cmd> - I<(mandatory)> command string to send

=item *

C<expect> - if the command expects an answer, indicate the number 
of characters to read

=back

=cut


=head2 Attributes

=head3 feedback_chars()

Returns true if feedback characters are enabled.

=head3 immediate_cmds()

Returns true if immediate commands are enabled.

=head3 label_edition()

Returns true if currently in label editing mode.


=head2 Immediate commands

=head3 ic_printer_reset()

Reset the printer: return all settings to the default, clear all 
buffers and the internal RAM. Return the firmware version.
See [TLS-PG] p.7


=head3 ic_printer_status()

Fetch and returns the printer status.
See [TLS-PG] p.8

B<Returns>

=over

=item *

feedback code

=item 

raw printer status as a string

=item 

decoded printer status as a hash

=back

B<Example>

    my ($rc, $raw, %status) = $device->ic_printer_status()


=head3 ic_toggle_pause()

Pause or resume the current print job.
See [TLS-PG] p.9


=head3 ic_cancel_job()

Cancel the current print job.
See [TLS-PG] p.10


=head3 ic_disable_immediate_cmds()

Disable immediate commands. They can be enabled again using 
C<sc_enable_immediate_cmds()>.
See [TLS-PG] p.10


=head3 ic_batch_quantity()

Fetch and return the quantity of label left to print in the current batch.
See [TLS-PG] p.10

B<Example>

    my ($rc, $qty) = $device->ic_batch_quantity()


=head2 System commands

=head3 sc_disable_feedback_chars()

Disable feedback characters.
See [TLS-PG] p.12


=head3 sc_enable_feedback_chars()

Enable feedback characters.
See [TLS-PG] p.12


=head3 sc_heat_setting_offset()

Adjust the time during which the dots on the printhead are heated.
See [TLS-PG] p.13

B<Arguments>

=over

lib/Device/TLSPrinter.pm  view on Meta::CPAN


=head3 sc_get_touch_cell_data_binary

Fetch and return the touch cell data from the media as binary.
See [TLS-PG] p.22

B<Returns>

=over

=item *

feedback code

=item *

raw cell status as binary

=back


=head3 sc_replace_label_format_field

Place new data into format fields.
See [TLS-PG] p.24

B<Arguments>

=over

=item 1.

format field number

=item 2.

new string data

=back


=head3 sc_get_touch_cell_data_ascii

Fetch and return the touch cell data from the media as ASCII.
See [TLS-PG] p.25

B<Returns>

=over

=item *

feedback code

=item *

raw cell status as a string

=item *

decoded cell status as a hash

=back

B<Example>

    my ($rc, $raw, %stat) = $device->sc_get_touch_cell_data_ascii


=head3 sc_firmware_version()

Fetch and return the firmware version.
See [TLS-PG] p.25


=head3 sc_memory_information()

Fetch and return a directory listing of images in printer memory.
See [TLS-PG] p.25


=head3 sc_delete_file()

Instruct the printer to remove a specific file from memory.
See [TLS-PG] p.26

B<Arguments>

=over

=item 1.

file type, C<"G"> for image

=item 2.

file name

=back

=head3 sc_pack_memory()

Instruct the printer to reclaim all storage space associated with deleted files.
See [TLS-PG] p.27


=head2 Label formatting commands

=head3 lc_set_format_attribute()

See [TLS-PG] p.30

B<Arguments>

=over

=item 1.

mode

=back



( run in 2.737 seconds using v1.01-cache-2.11-cpan-600a1bdf6e4 )