module StarEthernet::Command

Public Class Methods

_180_degree_turnover_1(k, m, n) click to toggle source

Page Function Command Details

# File lib/star_ethernet/command.rb, line 801
def self._180_degree_turnover_1(k, m, n)
  [0x1b, 0x1d, 0x68, 0x30, k, m, n].pack('C*')
end
_180_degree_turnover_2(k, m, n) click to toggle source
# File lib/star_ethernet/command.rb, line 805
def self._180_degree_turnover_2(k, m, n)
  [0x1b, 0x1d, 0x68, 0x31, k, m, n].pack('C*')
end
_2d_gs1_databar_print_symbol_data_fo_symbol_saving_region(pL, pH, cn, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 775
def self._2d_gs1_databar_print_symbol_data_fo_symbol_saving_region(pL, pH, cn, fn, m)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, fn, m].pack('C*')
end
_2d_gs1_databar_set_module_siz(pL, pH, cn ,fn, n) click to toggle source
# File lib/star_ethernet/command.rb, line 763
def self._2d_gs1_databar_set_module_siz(pL, pH, cn ,fn, n)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn ,fn, n].pack('C*')
end
_2d_gs1_databar_set_the_maximum_width_of_the_2d_gs1_databar_expanded_stacked(pL, pH, cn ,fn, nL, nH) click to toggle source
# File lib/star_ethernet/command.rb, line 767
def self._2d_gs1_databar_set_the_maximum_width_of_the_2d_gs1_databar_expanded_stacked(pL, pH, cn ,fn, nL, nH)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn ,fn, nL, nH].pack('C*')
end
_2d_gs1_databar_store_data_in_symbol_saving_region(pL, pH, cn, fn, m, n, d) click to toggle source
# File lib/star_ethernet/command.rb, line 771
def self._2d_gs1_databar_store_data_in_symbol_saving_region(pL, pH, cn, fn, m, n, d)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, fn, m, n, *d].pack('C*')
end
acquire_presenter_paper_counter(n) click to toggle source
# File lib/star_ethernet/command.rb, line 615
def self.acquire_presenter_paper_counter(n)
  [0x1b, 0x16, 0x33, n].pack('C*')
end
add_under_line() click to toggle source
# File lib/star_ethernet/command.rb, line 78
def self.add_under_line
  select_cancel_underling_mode(0x01)
end
add_upper_line() click to toggle source
# File lib/star_ethernet/command.rb, line 86
def self.add_upper_line
  specify_cancel_upperline(0x01)
end
align_center() click to toggle source
# File lib/star_ethernet/command.rb, line 52
def self.align_center
  specify_position_alignment(0x01)
end
align_left() click to toggle source
# File lib/star_ethernet/command.rb, line 48
def self.align_left
  specify_position_alignment(0x00)
end
align_right() click to toggle source
# File lib/star_ethernet/command.rb, line 56
def self.align_right
  specify_position_alignment(0x02)
end
auto_cutter(n) click to toggle source

Cutter Control

# File lib/star_ethernet/command.rb, line 359
def self.auto_cutter(n)
  [0x1b, 0x64, n].pack('C*')
end
auto_logo_function_on_off_setting(n) click to toggle source
# File lib/star_ethernet/command.rb, line 667
def self.auto_logo_function_on_off_setting(n)
  [0x1b, 0x1d, 0x2f, 0x31, n].pack('C*')
end
bar_code(n1, n2, n3, n4, d) click to toggle source

Bar Code

# File lib/star_ethernet/command.rb, line 353
def self.bar_code(n1, n2, n3, n4, d)
  [0x1b, 0x62, n1, n2, n3, n4, *d, 0x1e].pack('C*')
end
batch_playback_of_nv_audio(a, t1, t2) click to toggle source
# File lib/star_ethernet/command.rb, line 913
def self.batch_playback_of_nv_audio(a, t1, t2)
  [0x1b, 0x1d, 0x73, 0x54, a, t1, t2].pack('C*')
end
cancel_emphasized_printing() click to toggle source
# File lib/star_ethernet/command.rb, line 183
def self.cancel_emphasized_printing
  [0x1b, 0x46].pack('C*')
end
cancel_expanded_high() click to toggle source
# File lib/star_ethernet/command.rb, line 173
def self.cancel_expanded_high
  [0x1b, 0x14].pack('C*')
end
cancel_expanded_wide() click to toggle source
# File lib/star_ethernet/command.rb, line 165
def self.cancel_expanded_wide
  [0x14].pack('C*')
end
cancel_jis_kanji_character_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 447
def self.cancel_jis_kanji_character_mode
  [0x1b, 0x71].pack('C*')
end
cancel_page_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 821
def self.cancel_page_mode
  [0x1b, 0x1d, 0x50, 0x31].pack('C*')
end
cancel_print_data_and_initialize_commands() click to toggle source

Others

# File lib/star_ethernet/command.rb, line 469
def self.cancel_print_data_and_initialize_commands
  [0x18].pack('C*')
end
cancel_print_data_in_page_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 849
def self.cancel_print_data_in_page_mode
  [0x1b, 0x1d, 0x50, 0x38].pack('C*')
end
cancel_upside_down_printing() click to toggle source
# File lib/star_ethernet/command.rb, line 207
def self.cancel_upside_down_printing
  [0x12].pack('C*')
end
cancel_white_black_inversion() click to toggle source
# File lib/star_ethernet/command.rb, line 199
def self.cancel_white_black_inversion
  [0x1b, 0x35].pack('C*')
end
carriage_return() click to toggle source
# File lib/star_ethernet/command.rb, line 221
def self.carriage_return
  [0x0d].pack('C*')
end
clear_horizontal_tab() click to toggle source
# File lib/star_ethernet/command.rb, line 289
def self.clear_horizontal_tab
  [0x1b, 0x44, 0x00].pack('C*')
end
clear_raster_data() click to toggle source
# File lib/star_ethernet/command.rb, line 497
def self.clear_raster_data
  [0x1b, 0x2a, 0x72, 0x43].pack('C*')
end
clear_vertical_tab_position() click to toggle source
# File lib/star_ethernet/command.rb, line 267
def self.clear_vertical_tab_position
  [0x1b, 0x42, 0x00].pack('C*')
end
command_initialization() click to toggle source
# File lib/star_ethernet/command.rb, line 473
def self.command_initialization
  [0x1b, 0x40].pack('C*')
end
compound_symbol_print_data_in_symbol_saving_region(pL, pH, cn, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 795
def self.compound_symbol_print_data_in_symbol_saving_region(pL, pH, cn, fn, m)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, fn, m].pack('C*')
end
compound_symbol_set_module_width(pL, pH, cn, fn, n) click to toggle source
# File lib/star_ethernet/command.rb, line 779
def self.compound_symbol_set_module_width(pL, pH, cn, fn, n)
  [0x1b, 0x1d, 0x28, 0x6, pL, pH, cn, fn, n].pack('C*')
end
compound_symbol_set_the_hri_font(pL, pH, cn, fn, n) click to toggle source
# File lib/star_ethernet/command.rb, line 787
def self.compound_symbol_set_the_hri_font(pL, pH, cn, fn, n)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, fn, n].pack('C*')
end
compound_symbol_set_the_maximum_width_of_the_2d_gs1_databar_expanded_stacked(pL, pH, cn, nL, nH) click to toggle source
# File lib/star_ethernet/command.rb, line 783
def self.compound_symbol_set_the_maximum_width_of_the_2d_gs1_databar_expanded_stacked(pL, pH, cn, nL, nH)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, nL, nH].pack('C*')
end
compound_symbol_store_data_in_symbol_saving_region(pL, pH, cn, fn, m, a, b, d) click to toggle source
# File lib/star_ethernet/command.rb, line 791
def self.compound_symbol_store_data_in_symbol_saving_region(pL, pH, cn, fn, m, a, b, d)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, fn, m, a, b, d].pack('C*')
end
define_the_text_search_macro(pL, pH, fn, m, k1, k2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 875
def self.define_the_text_search_macro(pL, pH, fn, m, k1, k2, d)
  [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m, k1, k2, *d].pack('C*')
end
define_the_text_search_string(pL, pH, fn, n, m, k, d) click to toggle source
# File lib/star_ethernet/command.rb, line 871
def self.define_the_text_search_string(pL, pH, fn, n, m, k, d)
  [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, n, m, k, *d].pack('C*')
end
delete_12_x_24_dot_font_download_characters(c1, c2, n) click to toggle source
# File lib/star_ethernet/command.rb, line 311
def self.delete_12_x_24_dot_font_download_characters(c1, c2, n)
  [0x1b, 0x26, c1, c2, n].pack('C*')
end
double_font_size() click to toggle source
# File lib/star_ethernet/command.rb, line 27
def self.double_font_size
  self.set_cancel_the_double_wide_high(0x01, 0x01)
end
drawer_drive(n) click to toggle source
# File lib/star_ethernet/command.rb, line 501
def self.drawer_drive(n)
  [0x1b, 0x2a, 0x72, 0x44, n, 0x00].pack('C*')
end
end_document() click to toggle source
# File lib/star_ethernet/command.rb, line 18
def self.end_document
  self.send_print_end_counter_initialize(0x04, 0x00, 0x00)
end
enter_raster_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 489
def self.enter_raster_mode
  [0x1b, 0x2a, 0x72, 0x41].pack('C*')
end
erase_the_specified_nv_graphics_data_function_67_1(pL, pH, m, fn, a, kc1, kc2, b, xL, xH, yL, yH, cd) click to toggle source
# File lib/star_ethernet/command.rb, line 967
def self.erase_the_specified_nv_graphics_data_function_67_1(pL, pH, m, fn, a, kc1, kc2, b, xL, xH, yL, yH, cd)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn, a, kc1, kc2, b, xL, xH, yL, yH, *cd].pack('C*')
end
erase_the_specified_nv_graphics_data_function_67_2(p1, p2, p3, p4, m, fn, a, kc1, kc2, xL, xH, yL, yH, cd) click to toggle source
# File lib/star_ethernet/command.rb, line 971
def self.erase_the_specified_nv_graphics_data_function_67_2(p1, p2, p3, p4, m, fn, a, kc1, kc2, xL, xH, yL, yH, cd)
  [0x1b, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m, fn, a, kc1, kc2, xL, xH, yL, yH, cd].pack('C*')
end
erase_the_specified_vn_graphics_data_function_66_1(pL, pH, m, fn ,kc1, kc2) click to toggle source
# File lib/star_ethernet/command.rb, line 959
def self.erase_the_specified_vn_graphics_data_function_66_1(pL, pH, m, fn ,kc1, kc2)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn ,kc1, kc2].pack('C*')
end
erase_the_specified_vn_graphics_data_function_66_2(p1, p2, p3, p4, m, fn, kc1, kc2) click to toggle source
# File lib/star_ethernet/command.rb, line 963
def self.erase_the_specified_vn_graphics_data_function_66_2(p1, p2, p3, p4, m, fn, kc1, kc2)
  [0x1b, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m, fn, kc1, kc2].pack('C*')
end
execute_eot_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 553
def self.execute_eot_mode
  [0x1b, 0x0c, 0x04].pack('C*')
end
execute_external_buzzer_drive(m, n) click to toggle source
# File lib/star_ethernet/command.rb, line 557
def self.execute_external_buzzer_drive(m, n)
  [0x1b, 0x2a, 0x72, 0x56, m ,n ,0x00].pack('C*')
end
execute_ff_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 549
def self.execute_ff_mode
  [0x1b, 0x0c, 0x00].pack('C*')
end
execute_presenter_paper_recovery(n) click to toggle source

Presenter Related Command Details

# File lib/star_ethernet/command.rb, line 603
def self.execute_presenter_paper_recovery(n)
  [0x1b, 0x16, 0x30, n].pack('C*')
end
execute_real_time_printer_reset() click to toggle source
# File lib/star_ethernet/command.rb, line 425
def self.execute_real_time_printer_reset
  [0x1b, 0x06, 0x18].pack('C*')
end
execute_top_form() click to toggle source

Black Mark Related Command Details

# File lib/star_ethernet/command.rb, line 579
def self.execute_top_form
  [0x0c].pack('C*')
end
external_buzzer_drive_condition_settings(m, n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 389
def self.external_buzzer_drive_condition_settings(m, n1, n2)
  [0x1b, 0x1d, 0x19, 0x11, m, n1, n2].pack('C*')
end
external_buzzer_drive_execution(m, n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 393
def self.external_buzzer_drive_execution(m, n1, n2)
  [0x1b, 0x1d, 0x19, 0x12, m, n1, n2].pack('C*')
end
external_device_1_drive_instruction_bel() click to toggle source
# File lib/star_ethernet/command.rb, line 369
def self.external_device_1_drive_instruction_bel
  [0x07].pack('C*')
end
external_device_1_drive_instruction_fs() click to toggle source
# File lib/star_ethernet/command.rb, line 373
def self.external_device_1_drive_instruction_fs
  [0x1c].pack('C*')
end
external_device_2_drive_instruction_em() click to toggle source
# File lib/star_ethernet/command.rb, line 381
def self.external_device_2_drive_instruction_em
  [0x19].pack('C*')
end
external_device_2_drive_instruction_sub() click to toggle source
# File lib/star_ethernet/command.rb, line 377
def self.external_device_2_drive_instruction_sub
  [0x1a].pack('C*')
end
feed_paper_in_lines(n) click to toggle source
# File lib/star_ethernet/command.rb, line 225
def self.feed_paper_in_lines(n)
  [0x1b, 0x61, n].pack('C*')
end
feed_paper_to_vertical_tab_position() click to toggle source
# File lib/star_ethernet/command.rb, line 259
def self.feed_paper_to_vertical_tab_position
  [0x0b].pack('C*')
end
feed_paper_to_vertical_table_position() click to toggle source
# File lib/star_ethernet/command.rb, line 587
def self.feed_paper_to_vertical_table_position
  [0x0b].pack('C*')
end
fine_density_bit_iamge_compatible_with_24_bit_wire_dots(n1, n2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 333
def self.fine_density_bit_iamge_compatible_with_24_bit_wire_dots(n1, n2, d)
  [0x1b, 0x58, n1, n2, *d].pack('C*')
end
fine_density_bit_image(n1, n2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 329
def self.fine_density_bit_image(n1, n2, d)
  [0x1b, 0x6b, n1, n2, *d].pack('C*')
end
form_feed() click to toggle source

Page Control Commands

# File lib/star_ethernet/command.rb, line 247
def self.form_feed
  [0x0c].pack('C*')
end
full_cut_after_line_buffer() click to toggle source
# File lib/star_ethernet/command.rb, line 69
def self.full_cut_after_line_buffer
  auto_cutter(0x02)
end
full_cut_current_line() click to toggle source
# File lib/star_ethernet/command.rb, line 61
def self.full_cut_current_line
  auto_cutter(0x00)
end
function_64_1(pL, pH, m, fn, d1, d2) click to toggle source
# File lib/star_ethernet/command.rb, line 943
def self.function_64_1(pL, pH, m, fn, d1, d2)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn, d1, d2].pack('C*')
end
function_64_2(p1, p2, p3, p4, m, fn, d1, d2) click to toggle source
# File lib/star_ethernet/command.rb, line 947
def self.function_64_2(p1, p2, p3, p4, m, fn, d1, d2)
  [0x1b, 0x1d, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m, fn, d1, d2].pack('C*')
end
function_65_1(pL, pH, m ,fn, d1, d2, d3) click to toggle source
# File lib/star_ethernet/command.rb, line 951
def self.function_65_1(pL, pH, m ,fn, d1, d2, d3)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m ,fn, d1, d2, d3].pack('C*')
end
function_65_2(p1, p2, p3, p4, m, fn, d1, d2, d3) click to toggle source
# File lib/star_ethernet/command.rb, line 955
def self.function_65_2(p1, p2, p3, p4, m, fn, d1, d2, d3)
  [0x1b, 0x1d, 0x28, 0x4c, p1, p2, p3, p4, m, fn, d1, d2, d3].pack('C*')
end
get_pdf_417_bar_code_expansion_information() click to toggle source
# File lib/star_ethernet/command.rb, line 713
def self.get_pdf_417_bar_code_expansion_information
  [0x1b, 0x1d, 0x78, 0x49].pack('C*')
end
get_qr_code_expansion_information() click to toggle source
# File lib/star_ethernet/command.rb, line 753
def self.get_qr_code_expansion_information
  [0x1b, 0x1d, 0x79, 0x49].pack('C*')
end
initialize_asb_etb_counter_and_etb_status(n) click to toggle source
# File lib/star_ethernet/command.rb, line 433
def self.initialize_asb_etb_counter_and_etb_status(n)
  [0x1b, 0x1e, 0x45, n].pack('C*')
end
initialize_auto_logo_setting_to_non_volatile_memory() click to toggle source
# File lib/star_ethernet/command.rb, line 663
def self.initialize_auto_logo_setting_to_non_volatile_memory
  [0x1b, 0x1d, 0x2f, 0x43].pack('C*')
end
initialize_mark_format_in_the_non_volatile_memory() click to toggle source
# File lib/star_ethernet/command.rb, line 653
def self.initialize_mark_format_in_the_non_volatile_memory
  [0x1b, 0x1d, 0x2a, 0x43].pack('C*')
end
initialize_presenter_paper_counter(n) click to toggle source
# File lib/star_ethernet/command.rb, line 619
def self.initialize_presenter_paper_counter(n)
  [0x1b, 0x16, 0x34, n].pack('C*')
end
initialize_print_sequence() click to toggle source
# File lib/star_ethernet/command.rb, line 7
def self.initialize_print_sequence
  [
    self.quit_raster_mode,
    self.send_print_end_counter_initialize(0x04, 0x00,0x00),
  ].join
end
initialize_raster_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 485
def self.initialize_raster_mode
  [0x1b, 0x2a, 0x72, 0x52].pack('C*')
end
initialize_text_search_settings_and_definitions(pL, pH, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 879
def self.initialize_text_search_settings_and_definitions(pL, pH, fn, m)
  [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m].pack('C*')
end
line_feed() click to toggle source

Line Spacing

# File lib/star_ethernet/command.rb, line 217
def self.line_feed
  [0x1a].pack('C*')
end
move_absolute_position(n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 293
def self.move_absolute_position(n1, n2)
  [0x1b, 0x1d, 0x41, n1, n2].pack('C*')
end
move_horizontal_tab() click to toggle source
# File lib/star_ethernet/command.rb, line 281
def self.move_horizontal_tab
  [0x09].pack('C*')
end
move_relative_position(n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 297
def self.move_relative_position(n1, n2)
  [0x1b, 0x1d, 0x52, n1, n2].pack('C*')
end
move_vertical_direction_position_line_feed_for_specified_dots(n) click to toggle source
# File lib/star_ethernet/command.rb, line 545
def self.move_vertical_direction_position_line_feed_for_specified_dots(n)
  [0x1b, 0x2a, 0x72, 0x59, n, 0x00].pack('C*')
end
n_4_mm_line_feed(n) click to toggle source
# File lib/star_ethernet/command.rb, line 237
def self.n_4_mm_line_feed(n)
  [0x1b, 0x4a, n].pack('C*')
end
n_8_mm_line_feed(n) click to toggle source
# File lib/star_ethernet/command.rb, line 241
def self.n_8_mm_line_feed(n)
  [0x1b, 0x49, n].pack('C*')
end
normal_font_size() click to toggle source
# File lib/star_ethernet/command.rb, line 23
def self.normal_font_size
  self.set_cancel_the_double_wide_high(0x00, 0x00)
end
partial_cut_after_line_buffer() click to toggle source
# File lib/star_ethernet/command.rb, line 73
def self.partial_cut_after_line_buffer
  auto_cutter(0x03)
end
partial_cut_current_line() click to toggle source
# File lib/star_ethernet/command.rb, line 65
def self.partial_cut_current_line
  auto_cutter(0x01)
end
playback_nv_audio(z, a, n, c1, c2, d1, d2, t1, t2) click to toggle source

Audio Command Details

# File lib/star_ethernet/command.rb, line 893
def self.playback_nv_audio(z, a, n, c1, c2, d1, d2, t1, t2)
  [0x1b, 0x1d, 0x73, 0x4f, z, a, n, c1, c2, d1, d2, t1, t2].pack('C*')
end
playback_receive_audio(z, n1, n2, n3, d) click to toggle source
# File lib/star_ethernet/command.rb, line 901
def self.playback_receive_audio(z, n1, n2, n3, d)
  [0x1b, 0x1d, 0x73, 0x52, z, n1, n2, n3, *d].pack('C*')
end
print_data_in_page_mode() click to toggle source
print_in_page_mode_and_recover() click to toggle source
print_logo_in_batch_and_batch_control_of_registered_logos(m0) click to toggle source
print_mark(n, m) click to toggle source

Mark Command Details

print_pdf_417_bar_code() click to toggle source
print_qr(text, mistake_correction_level: 0x00, cell_size: 0x00) click to toggle source
print_qr_code() click to toggle source
print_starting_timer(m, n) click to toggle source
print_starting_trigger(m, n) click to toggle source

Details of Print Starting Trigger Control Command

print_the_specified_nv_graphics_data_function_112_1(pL, pH, m, fn, a, bx, by, c, xL, xH, yL, yH, d) click to toggle source
print_the_specified_nv_graphics_data_function_112_2(p1, p2, p3, p4, m ,fn, a, bx, by, c, xL, xH, yL, yH, d) click to toggle source
print_the_specified_nv_graphics_data_function_69_1(pL, pH, m, fn, kc1, kc2, x, y) click to toggle source
print_the_specified_nv_graphics_data_function_69_2(p1, p2, p3, p4, m, fn, kc1, kc2, x, y) click to toggle source
print_the_text_search_settings_and_definitions(pL, pH, fn, m) click to toggle source
quadruple_font_size() click to toggle source
# File lib/star_ethernet/command.rb, line 35
def self.quadruple_font_size
  self.set_cancel_the_double_wide_high(0x03, 0x03)
end
quintuple_font_size() click to toggle source
# File lib/star_ethernet/command.rb, line 39
def self.quintuple_font_size
  self.set_cancel_the_double_wide_high(0x04, 0x04)
end
quit_raster_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 493
def self.quit_raster_mode
  [0x1b, 0x2a, 0x72, 0x42].pack('C*')
end
raster_mode_audio_playback() click to toggle source
# File lib/star_ethernet/command.rb, line 561
def self.raster_mode_audio_playback
  [0x1b, 0x2a, 0x72, 0x53].pack('C*')
end
real_time_printer_status() click to toggle source
# File lib/star_ethernet/command.rb, line 413
def self.real_time_printer_status
  [0x1b, 0x06, 0x01].pack('C*')
end
real_time_printer_status_1() click to toggle source
# File lib/star_ethernet/command.rb, line 417
def self.real_time_printer_status_1
  [0x05].pack('C*')
end
real_time_printer_status_2() click to toggle source
# File lib/star_ethernet/command.rb, line 421
def self.real_time_printer_status_2
  [0x04].pack('C*')
end
register_12_x_24_dot_font_download_characters(c1, c2, n, d) click to toggle source

Download

# File lib/star_ethernet/command.rb, line 307
def self.register_12_x_24_dot_font_download_characters(c1, c2, n, d)
  [0x1b, 0x26, c1, c2, n, *d].pack('C*')
end
register_auto_logo_setting_to_non_volatile_memory() click to toggle source

AUTO LOGO Function Command Details

# File lib/star_ethernet/command.rb, line 659
def self.register_auto_logo_setting_to_non_volatile_memory
  [0x1b, 0x1d, 0x2f, 0x57].pack('C*')
end
register_automatic_audio_setting_information(z, e, a, n ,c1, c2, d1, d2, t1, t2) click to toggle source
# File lib/star_ethernet/command.rb, line 905
def self.register_automatic_audio_setting_information(z, e, a, n ,c1, c2, d1, d2, t1, t2)
  [0x1b, 0x1d, 0x73, 0x49, z, e, a, n ,c1, c2, d1, d2, t1, t2].pack('C*')
end
register_chinese_download_characters(c1, c2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 463
def self.register_chinese_download_characters(c1, c2, d)
  [0x1b, 0x72, c1, c2, *d].pack('C*')
end
register_mark_format_to_non_volatile_memory() click to toggle source
# File lib/star_ethernet/command.rb, line 649
def self.register_mark_format_to_non_volatile_memory
  [0x1b, 0x1d, 0x2a, 0x57].pack('C*')
end
register_user_area_nv_audio_data(z, n, d) click to toggle source
# File lib/star_ethernet/command.rb, line 909
def self.register_user_area_nv_audio_data(z, n, d)
  [0x1b, 0x1d, 0x73, 0x55, z, n, *d].pack('C*')
end
remove_under_line() click to toggle source
# File lib/star_ethernet/command.rb, line 82
def self.remove_under_line
  select_cancel_underling_mode(0x00)
end
remove_upper_line() click to toggle source
# File lib/star_ethernet/command.rb, line 90
def self.remove_upper_line
  specify_cancel_upperline(0x00)
end
reset_printer_execute_self_print() click to toggle source
# File lib/star_ethernet/command.rb, line 481
def self.reset_printer_execute_self_print
  [0x1b, 0x3f, 0x0a, 0x00].pack('C*')
end
ring_buzzer(m, t1, t2) click to toggle source
# File lib/star_ethernet/command.rb, line 385
def self.ring_buzzer(m, t1, t2)
  [0x1b, 0x1d, 0x07, m, t1, t2].pack('C*')
end
run_the_text_search_macro(pL, pH, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 887
def self.run_the_text_search_macro(pL, pH, fn, m)
  [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m].pack('C*')
end
select_cancel_2_color_print_mode(n) click to toggle source
# File lib/star_ethernet/command.rb, line 597
def self.select_cancel_2_color_print_mode(n)
  [0x1b, 0x1e, 0x43, n].pack('C*')
end
select_cancel_underling_mode(n) click to toggle source
# File lib/star_ethernet/command.rb, line 187
def self.select_cancel_underling_mode(n)
  [0x1b, 0x2d, n].pack('C*')
end
select_character_print_direction_in_page_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 825
def self.select_character_print_direction_in_page_mode
  [0x1b, 0x1d, 0x50, 0x32].pack('C*')
end
select_code_page(t, n) click to toggle source
# File lib/star_ethernet/command.rb, line 111
def self.select_code_page(t, n)
  [0x1b, 0x1d, t, n].pack('C*')
end
select_emphasized_printing() click to toggle source

Print Mode

# File lib/star_ethernet/command.rb, line 179
def self.select_emphasized_printing
  [0x1b, 0x45].pack('C*')
end
select_font(n) click to toggle source

Standard Command

Font style and Character Set
# File lib/star_ethernet/command.rb, line 107
def self.select_font(n)
  [0x1b, 0x1e, 0x46, n].pack('C*')
end
select_line_feed_amount(n) click to toggle source
# File lib/star_ethernet/command.rb, line 229
def self.select_line_feed_amount(n)
  [0x1b, 0x7a, n].pack('C*')
end
select_upside_down_printing() click to toggle source
# File lib/star_ethernet/command.rb, line 203
def self.select_upside_down_printing
  [0x1f].pack('C*')
end
select_white_black_inverted_printing() click to toggle source
# File lib/star_ethernet/command.rb, line 195
def self.select_white_black_inverted_printing
  [0x1b, 0x34].pack('C*')
end
selects_page_mode() click to toggle source

Page Mode Command Details

# File lib/star_ethernet/command.rb, line 817
def self.selects_page_mode
  [0x1b, 0x1d, 0x50, 0x30].pack('C*')
end
send_all_key_code_the_registered_nv_graphics(pL, pH, fn, d1, d2) click to toggle source
# File lib/star_ethernet/command.rb, line 1005
def self.send_all_key_code_the_registered_nv_graphics(pL, pH, fn, d1, d2)
  [0x1b, 0x1d, 0x29, 0x4c, pL, pH, fn, d1, d2].pack('C*')
end
send_nv_graphics_memory_capacity_48_1(pL, pH, m, fn) click to toggle source
# File lib/star_ethernet/command.rb, line 927
def self.send_nv_graphics_memory_capacity_48_1(pL, pH, m, fn)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn].pack('C*')
end
send_nv_graphics_memory_capacity_48_2(p1, p2, p3, p4, m, fn) click to toggle source
# File lib/star_ethernet/command.rb, line 931
def self.send_nv_graphics_memory_capacity_48_2(p1, p2, p3, p4,  m, fn)
  [0x1b, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m, fn].pack('C*')
end
send_nv_graphics_memory_capacity_51_1(pL, pH, m, fn) click to toggle source
# File lib/star_ethernet/command.rb, line 935
def self.send_nv_graphics_memory_capacity_51_1(pL, pH, m, fn)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn].pack('C*')
end
send_nv_graphics_memory_capacity_51_2(p1, p2, p3, p4, m, fn) click to toggle source
# File lib/star_ethernet/command.rb, line 939
def self.send_nv_graphics_memory_capacity_51_2(p1, p2, p3, p4, m, fn)
  [0x1b, 0x1d, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m ,fn].pack('C*')
end
send_print_end_counter_initialize(s, n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 437
def self.send_print_end_counter_initialize(s, n1, n2)
  [0x1b, 0x1d, 0x03, s, n1, n2].pack('C*')
end
send_raster_data_auto_line_feed(n1, n2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 537
def self.send_raster_data_auto_line_feed(n1, n2, d)
  [0x62, n1, n2, *d].pack('C*')
end
send_registered_individual_logo_crc(pL, pH, fn, kc1, kc2) click to toggle source
# File lib/star_ethernet/command.rb, line 997
def self.send_registered_individual_logo_crc(pL, pH, fn, kc1, kc2)
  [0x1b, 0x1d, 0x29, 0x4c, pL, pH, fn, kc1, kc2].pack('C*')
end
set_1_byte_kanji_character_left_right_spaces(n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 459
def self.set_1_byte_kanji_character_left_right_spaces(n1, n2)
  [0x1b, 0x74, n1 ,n2].pack('C*')
end
set_2_byte_kanji_character_left_right_spaces(n1, n2) click to toggle source
# File lib/star_ethernet/command.rb, line 455
def self.set_2_byte_kanji_character_left_right_spaces(n1, n2)
  [0x1b, 0x73, n1, n2].pack('C*')
end
set_and_print_symbol(pL, pH, cn, fn, n) click to toggle source

GS1 2D Code, Compound symbol Command Details

# File lib/star_ethernet/command.rb, line 759
def self.set_and_print_symbol(pL, pH, cn, fn, n)
  [0x1b, 0x1d, 0x28, 0x6b, pL, pH, cn, fn, n].pack('C*')
end
set_ank_right_space(n) click to toggle source
# File lib/star_ethernet/command.rb, line 127
def self.set_ank_right_space(n)
  [0x1b, 0x20, n].pack('C*')
end
set_cancel_the_double_wide_high(n1, n2) click to toggle source

Character Expansion Settings

# File lib/star_ethernet/command.rb, line 149
def self.set_cancel_the_double_wide_high(n1, n2)
  [0x1b, 0x69, n1, n2].pack('C*')
end
set_command_character(n) click to toggle source
# File lib/star_ethernet/command.rb, line 671
def self.set_command_character(n)
  [0x1b, 0x1d, 0x2f, 0x32, n].pack('C*')
end
set_command_character_switch_method(n) click to toggle source
# File lib/star_ethernet/command.rb, line 679
def self.set_command_character_switch_method(n)
  [0x1b, 0x1d, 0x2f, 0x35, n].pack('C*')
end
set_double_high() click to toggle source
# File lib/star_ethernet/command.rb, line 169
def self.set_double_high
  [0x1b, 0x0e].pack('C*')
end
set_double_wide() click to toggle source
# File lib/star_ethernet/command.rb, line 161
def self.set_double_wide
  [0x0e].pack('C*')
end
set_external_drive_device_1_pulse_with(n1, n2) click to toggle source

External Device Drive

# File lib/star_ethernet/command.rb, line 365
def self.set_external_drive_device_1_pulse_with(n1, n2)
  [0x1b, 0x07, n1, n2].pack('C*')
end
set_graphics_data(pL, pH, fn) click to toggle source

Individual Logo Commands

# File lib/star_ethernet/command.rb, line 993
def self.set_graphics_data(pL, pH, fn)
  [0x1b, 0x1b, 0x29, 0x4c, pL, pH, fn].pack('C*')
end
set_horizontal_tab(n) click to toggle source
# File lib/star_ethernet/command.rb, line 285
def self.set_horizontal_tab(n)
  [0x1b, 0x44, *n, 0x00].pack('C*')
end
set_left_margin(n) click to toggle source

Horizontal Direction Printing Position

# File lib/star_ethernet/command.rb, line 273
def self.set_left_margin(n)
  [0x1b, 0x6c, n].pack('C*')
end
set_memory_switch(m, n, n1, n2, n3, n4) click to toggle source
# File lib/star_ethernet/command.rb, line 477
def self.set_memory_switch(m, n, n1, n2, n3, n4)
  [0x1b, 0x1d, 0x23, m, n ,n1, n2 ,n3, n4, 0x0a, 0x00].pack('C*')
end
set_page_length_to_lines(n) click to toggle source
# File lib/star_ethernet/command.rb, line 583
def self.set_page_length_to_lines(n)
  [0x1b, 0x43, n].pack('C*')
end
set_page_length_to_n_lines(n) click to toggle source
# File lib/star_ethernet/command.rb, line 251
def self.set_page_length_to_n_lines(n)
  [0x1b, 0x43, n].pack('C*')
end
set_page_length_to_n_x_24_mm_units(n) click to toggle source
# File lib/star_ethernet/command.rb, line 255
def self.set_page_length_to_n_x_24_mm_units(n)
  [0x1b, 0x43, 0x00, n].pack('C*')
end
set_partial_cut_before_logo_printing(n) click to toggle source
# File lib/star_ethernet/command.rb, line 683
def self.set_partial_cut_before_logo_printing(n)
  [0x1b, 0x1d, 0x2f, 0x36, n].pack('C*')
end
set_pdf_417_bar_code_data(nL, nH, d) click to toggle source
# File lib/star_ethernet/command.rb, line 705
def self.set_pdf_417_bar_code_data(nL, nH, d)
  [0x1b, 0x1d, 0x78, 0x44,nL, nH, *d].pack('C*')
end
set_pdf_417_bar_code_size(n, p1, p2) click to toggle source

Two-dimensional Bar Code PDF417 Command Details

# File lib/star_ethernet/command.rb, line 689
def self.set_pdf_417_bar_code_size(n, p1, p2)
  [0x1b, 0x1d, 0x78, 0x53, 0x30, n, p1, p2].pack('C*')
end
set_pdf_417_ecc_security_lebel(n) click to toggle source
# File lib/star_ethernet/command.rb, line 693
def self.set_pdf_417_ecc_security_lebel(n)
  [0x1b, 0x1d, 0x78, 0x53, 0x31, n].pack('C*')
end
set_pdf_417_module_aspect_ratio(n) click to toggle source
# File lib/star_ethernet/command.rb, line 701
def self.set_pdf_417_module_aspect_ratio(n)
  [0x1b, 0x1d, 0x78, 0x53, 0x33, n].pack('C*')
end
set_pdf_417_module_x_direction_size(n) click to toggle source
# File lib/star_ethernet/command.rb, line 697
def self.set_pdf_417_module_x_direction_size(n)
  [0x1b, 0x1d, 0x78, 0x53, 0x32, n].pack('C*')
end
set_presenter_operation_mode(n) click to toggle source
# File lib/star_ethernet/command.rb, line 611
def self.set_presenter_operation_mode(n)
  [0x1b, 0x16, 0x32, n].pack('C*')
end
set_presenter_paper_automatic_recover_function_and_automatic_recovery_time(n) click to toggle source
# File lib/star_ethernet/command.rb, line 607
def self.set_presenter_paper_automatic_recover_function_and_automatic_recovery_time(n)
  [0x1b, 0x16, 0x31, n].pack('C*')
end
set_print_color_in_2_color_print_mode(n) click to toggle source

2 Color Printing Command Detail

# File lib/star_ethernet/command.rb, line 593
def self.set_print_color_in_2_color_print_mode(n)
  [0x1b, 0x1e, 0x63, n].pack('C*')
end
set_print_density(n) click to toggle source

Print Setting

# File lib/star_ethernet/command.rb, line 399
def self.set_print_density(n)
  [0x1b, 0x1e, 0x64, n].pack('C*')
end
set_print_region_in_page_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 829
def self.set_print_region_in_page_mode
  [0x1b, 0x1d, 0x50, 0x33].pack('C*')
end
set_print_speed(n) click to toggle source
# File lib/star_ethernet/command.rb, line 403
def self.set_print_speed(n)
  [0x1b, 0x1e, 0x72, n].pack('C*')
end
set_qr_code_cell_size(n) click to toggle source
# File lib/star_ethernet/command.rb, line 737
def self.set_qr_code_cell_size(n)
  [0x1b, 0x1d, 0x79, 0x53, 0x32, n].pack('C*')
end
set_qr_code_data_auto_setting(m, nL, nH, d) click to toggle source
# File lib/star_ethernet/command.rb, line 741
def self.set_qr_code_data_auto_setting(m, nL, nH, d)
  [0x1b, 0x1d, 0x79, 0x44, 0x31, m, nL, nH].pack('C*') + d
end
set_qr_code_data_manual_setting(a, m1, n1L, n1H, d) click to toggle source
# File lib/star_ethernet/command.rb, line 745
def self.set_qr_code_data_manual_setting(a, m1, n1L, n1H, d)
  [0x1b, 0x1d, 0x79, 0x44, 0x32, a, m1, n1L, n1H].pack('C*') + d
end
set_qr_code_mistake_correction_level(n) click to toggle source
# File lib/star_ethernet/command.rb, line 733
def self.set_qr_code_mistake_correction_level(n)
  [0x1b, 0x1d, 0x79, 0x53, 0x31, n].pack('C*')
end
set_qr_code_model(n) click to toggle source

Two-Dimensional Bar Code QR Code Command Details

# File lib/star_ethernet/command.rb, line 729
def self.set_qr_code_model(n)
  [0x1b, 0x1d, 0x79, 0x53, 0x30, n].pack('C*')
end
set_raster_eot_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 505
def self.set_raster_eot_mode
  [0x1b, 0x2a, 0x72, 0x45, n, 0x00].pack('C*')
end
set_raster_ff_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 509
def self.set_raster_ff_mode
  [0x1b, 0x2a, 0x72, 0x46, n, 0x00].pack('C*')
end
set_raster_left_margin(n) click to toggle source
# File lib/star_ethernet/command.rb, line 521
def self.set_raster_left_margin(n)
  [0x1b, 0x2a, 0x72, 0x6d, 0x6c, n, 0x00].pack('C*')
end
set_raster_mode_nv_audio_playback_count(n) click to toggle source
# File lib/star_ethernet/command.rb, line 569
def self.set_raster_mode_nv_audio_playback_count(n)
  [0x1b, 0x2a, 0x72, 0x73, 0x31, n, 0x00].pack('C*')
end
set_raster_mode_nv_audio_playback_interval_time(n) click to toggle source
# File lib/star_ethernet/command.rb, line 573
def self.set_raster_mode_nv_audio_playback_interval_time(n)
  [0x1b, 0x2a, 0x72, 0x73, 0x33, n, 0x00].pack('C*')
end
set_raster_mode_nv_audio_playback_number(a, n) click to toggle source
# File lib/star_ethernet/command.rb, line 565
def self.set_raster_mode_nv_audio_playback_number(a, n)
  [0x1b, 0x2a, 0x72, 0x73, 0x30, a, n, 0x00].pack('C*')
end
set_raster_page_length(n) click to toggle source
# File lib/star_ethernet/command.rb, line 513
def self.set_raster_page_length(n)
  [0x1b, 0x2a, 0x72, 0x50, n, 0x00].pack('C*')
end
set_raster_print_color(n) click to toggle source
# File lib/star_ethernet/command.rb, line 533
def self.set_raster_print_color(n)
  [0x1b, 0x2a, 0x72, 0x4b, n, 0x00].pack('C*')
end
set_raster_print_quality() click to toggle source
# File lib/star_ethernet/command.rb, line 517
def self.set_raster_print_quality
  [0x1b, 0x2a, 0x72, 0x51, n, 0x00].pack('C*')
end
set_raster_right_margin(n) click to toggle source
# File lib/star_ethernet/command.rb, line 525
def self.set_raster_right_margin(n)
  [0x1b, 0x2a, 0x72, 0x6d, 0x72, n, 0x00].pack('C*')
end
set_raster_to_margin(n) click to toggle source
# File lib/star_ethernet/command.rb, line 529
def self.set_raster_to_margin(n)
  [0x1b, 0x2a, 0x72, 0x54, n, 0x00].pack('C*')
end
set_reduced_printing(h, v) click to toggle source

Reduced Printing Function Command Details

# File lib/star_ethernet/command.rb, line 811
def self.set_reduced_printing(h, v)
  [0x1b, 0x1d, 0x63, h, v].pack('C*')
end
set_right_margin(n) click to toggle source
# File lib/star_ethernet/command.rb, line 277
def self.set_right_margin(n)
  [0x1b, 0x51, n].pack('C*')
end
set_status_transmission_conditions(n) click to toggle source

Status

# File lib/star_ethernet/command.rb, line 409
def self.set_status_transmission_conditions(n)
  [0x1b, 0x1e, 0x61, n].pack('C*')
end
set_the_number_of_times_to_run_the_text_search_macro(pL, pH, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 863
def self.set_the_number_of_times_to_run_the_text_search_macro(pL, pH, fn, m)
  [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m].pack('C*')
end
set_unicode(pL, pH, fn, params) click to toggle source

UTF Commands

# File lib/star_ethernet/command.rb, line 1021
def self.set_unicode(pL, pH, fn, params)
  [0x1b, 0x29, 0x55, pL, pH, fn, *params].pack('C*')
end
set_unicode_analysis(pL, pH, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 1025
def self.set_unicode_analysis(pL, pH, fn, m)
  [0x1b, 0x1d, 0x29, 0x55, pL, pH, fn, m].pack('C*')
end
set_user_macro_1(nL, nH, d) click to toggle source
# File lib/star_ethernet/command.rb, line 675
def self.set_user_macro_1(nL, nH, d)
  [0x1b, 0x1d, 0x2f, 0x33, nL, nH, *d].pack('C*')
end
set_utf_8_cjk_unified_ideograph_font(pL, pH, fn, n1, n2, n3, n4) click to toggle source
# File lib/star_ethernet/command.rb, line 1033
def self.set_utf_8_cjk_unified_ideograph_font(pL, pH, fn, n1, n2, n3, n4)
  [0x1b, 0x1d, 0x29, 0x55, pL, pH, fn, n1, n2, n3, n4].pack('C*')
end
set_vertical_tab_position(n) click to toggle source
# File lib/star_ethernet/command.rb, line 263
def self.set_vertical_tab_position(n)
  [0x1b, 0x42, *n, 0x00].pack('C*')
end
setting_of_unicode_ambiguous_character(pL, pH, fn, m) click to toggle source
# File lib/star_ethernet/command.rb, line 1029
def self.setting_of_unicode_ambiguous_character(pL, pH, fn, m)
  [0x1b, 0x1d, 0x29, 0x55, pL, pH, fn, m].pack('C*')
end
sextuple_font_size() click to toggle source
# File lib/star_ethernet/command.rb, line 43
def self.sextuple_font_size
  self.set_cancel_the_double_wide_high(0x05, 0x05)
end
snout_led_output(m, t1, t2) click to toggle source
# File lib/star_ethernet/command.rb, line 631
def self.snout_led_output(m, t1, t2)
  [0x1b, 0x1d, 0x1a, 0x13, m, t1, t2].pack('C*')
end
specifies_cancels_ank_download_characters(n) click to toggle source
# File lib/star_ethernet/command.rb, line 315
def self.specifies_cancels_ank_download_characters(n)
  [0x1b, 0x25, n].pack('C*')
end
specify_12_dot_pitch() click to toggle source
# File lib/star_ethernet/command.rb, line 131
def self.specify_12_dot_pitch
  [0x1b, 0x4d].pack('C*')
end
specify_14_dot_pitch() click to toggle source
# File lib/star_ethernet/command.rb, line 143
def self.specify_14_dot_pitch
  [0x1b, 0x67].pack('C*')
end
specify_15_dot_pitch() click to toggle source
# File lib/star_ethernet/command.rb, line 135
def self.specify_15_dot_pitch
  [0x1b, 0x50].pack('C*')
end
specify_16_dot_pitch() click to toggle source
# File lib/star_ethernet/command.rb, line 139
def self.specify_16_dot_pitch
  [0x1b, 0x3a].pack('C*')
end
specify_cancel_expanded_high(n) click to toggle source
# File lib/star_ethernet/command.rb, line 157
def self.specify_cancel_expanded_high(n)
  [0x1b, 0x68, n].pack('C*')
end
specify_cancel_expanded_wide(n) click to toggle source
# File lib/star_ethernet/command.rb, line 153
def self.specify_cancel_expanded_wide(n)
  [0x1b, 0x57, n].pack('C*')
end
specify_cancel_shift_jis_kanji_character_mode(n) click to toggle source
# File lib/star_ethernet/command.rb, line 451
def self.specify_cancel_shift_jis_kanji_character_mode(n)
  [0x1b, 0x24, n].pack('C*')
end
specify_cancel_slash_zero(n) click to toggle source
# File lib/star_ethernet/command.rb, line 123
def self.specify_cancel_slash_zero(n)
  [0x1b, 0x2f, n].pack('C*')
end
specify_cancel_smoothing(n) click to toggle source
# File lib/star_ethernet/command.rb, line 211
def self.specify_cancel_smoothing(n)
  [0x1b, 0x1d, 0x62, n].pack('C*')
end
specify_cancel_upperline(n) click to toggle source
# File lib/star_ethernet/command.rb, line 191
def self.specify_cancel_upperline(n)
  [0x1b, 0x5f, n].pack('C*')
end
specify_character_vertical_direction_absolute_position_in_page_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 833
def self.specify_character_vertical_direction_absolute_position_in_page_mode
  [0x1b, 0x1d, 0x50, 0x34].pack('C*')
end
specify_character_vertical_direction_relative_position_in_page_mode() click to toggle source
# File lib/star_ethernet/command.rb, line 837
def self.specify_character_vertical_direction_relative_position_in_page_mode
  [0x1b, 0x1d, 0x50, 0x35].pack('C*')
end
specify_graphics_data_1(pL, pH, n, fn, params) click to toggle source

Graphics data Command Details

# File lib/star_ethernet/command.rb, line 919
def self.specify_graphics_data_1(pL, pH, n, fn, params)
  [0x1b, 0x1d, 0x28, 0x4c, pL, pH, n, fn, *params].pack('C*')
end
specify_graphics_data_2(p1, p2, p3, p4, m, fn, params) click to toggle source
# File lib/star_ethernet/command.rb, line 923
def self.specify_graphics_data_2(p1, p2, p3, p4, m, fn, params)
  [0x1b, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m, fn, params].pack('C*')
end
specify_international_character_set(n) click to toggle source
# File lib/star_ethernet/command.rb, line 119
def self.specify_international_character_set(n)
  [0x1b, 0x52, n].pack('C*')
end
specify_jis_character_mode() click to toggle source

Kanji characters

# File lib/star_ethernet/command.rb, line 443
def self.specify_jis_character_mode
  [0x1b, 0x70].pack('C*')
end
specify_line_spacing_to_3_mm() click to toggle source
# File lib/star_ethernet/command.rb, line 233
def self.specify_line_spacing_to_3_mm
  [0x1b, 0x30].pack('C*')
end
specify_mark_color_and_mark_horizontal_width_for_each_number(m, c, w) click to toggle source
# File lib/star_ethernet/command.rb, line 645
def self.specify_mark_color_and_mark_horizontal_width_for_each_number(m, c, w)
  [0x1b, 0x1d, 0x2a, 0x32, m, c, w].pack('C*')
end
specify_mark_height_and_line_feed(h, v) click to toggle source
# File lib/star_ethernet/command.rb, line 641
def self.specify_mark_height_and_line_feed(h, v)
  [0x1b, 0x1d, 0x2a, 0x31, h, v].pack('C*')
end
specify_position_alignment(n) click to toggle source
# File lib/star_ethernet/command.rb, line 301
def self.specify_position_alignment(n)
  [0x1b, 0x1d, 0x61, n].pack('C*')
end
specify_snout_led_no_off(m, t1, t2) click to toggle source
# File lib/star_ethernet/command.rb, line 627
def self.specify_snout_led_no_off(m, t1, t2)
  [0x1b, 0x1d, 0x1a, 0x12, m ,t1, t2].pack('C*')
end
specify_snout_operation_mode(m, t1, t2) click to toggle source
# File lib/star_ethernet/command.rb, line 623
def self.specify_snout_operation_mode(m, t1, t2)
  [0x1b, 0x1d, 0x1a, 0x11, m, t1, t2].pack('C*')
end
standard_density_bit_image_K(n1, n2, d) click to toggle source

Bit Image Graphics

# File lib/star_ethernet/command.rb, line 321
def self.standard_density_bit_image_K(n1, n2, d)
  [0x1b, 0x4b, n1, n2, *d].pack('C*')
end
standard_density_bit_image_L(n1, n2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 325
def self.standard_density_bit_image_L(n1, n2, d)
  [0x1b, 0x4c, n1, n2, *d].pack('C*')
end
start_document() click to toggle source
# File lib/star_ethernet/command.rb, line 14
def self.start_document
  self.send_print_end_counter_initialize(0x03, 0x00, 0x00)
end
status_acquisition() click to toggle source
# File lib/star_ethernet/command.rb, line 3
def self.status_acquisition
  ([0x32] + 50.times.map { 0x00 }).pack('C*')
end
stop_vn_audio() click to toggle source
# File lib/star_ethernet/command.rb, line 897
def self.stop_vn_audio
  [0x1b, 0x1d, 0x73, 0x50].pack('C*')
end
transfer_raster_data(n1, n2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 541
def self.transfer_raster_data(n1, n2, d)
  [0x5b, n1, n2, *d].pack('C*')
end
transmit_all_types_of_multibyte_fonts(pL, pH, fn, d1, d2) click to toggle source
# File lib/star_ethernet/command.rb, line 1015
def self.transmit_all_types_of_multibyte_fonts(pL, pH, fn, d1, d2)
  [0x1b, 0x1d, 0x29, 0x49, pL, pH, fn, d1, d2].pack('C*')
end
transmit_capacity_used_registered_individual_nv_graphics(pL, pH, fn, kc1, kc2) click to toggle source
# File lib/star_ethernet/command.rb, line 1001
def self.transmit_capacity_used_registered_individual_nv_graphics(pL, pH, fn, kc1, kc2)
  [0x1b, 0x1d, 0x29, 0x4c, pL, pH, fn, kc1, kc2].pack('C*')
end
transmit_printer_information(pL, pH, fn, params) click to toggle source

Printer Information Transmission Commands

# File lib/star_ethernet/command.rb, line 1011
def self.transmit_printer_information(pL, pH, fn, params)
  [0x1b, 0x29, 0x49, pL, pH, fn, *params].pack('C*')
end
triple_font_size() click to toggle source
# File lib/star_ethernet/command.rb, line 31
def self.triple_font_size
  self.set_cancel_the_double_wide_high(0x02, 0x02)
end
update_asb_etb_status() click to toggle source
# File lib/star_ethernet/command.rb, line 429
def self.update_asb_etb_status
  [0x17].pack('C*')
end
write_blank_code_page_data(n1, n2, d) click to toggle source
# File lib/star_ethernet/command.rb, line 115
def self.write_blank_code_page_data(n1, n2, d)
  [0x1b, 0x1d, 0x3d, n1, n2, *d].pack('C*')
end