Module: StarEthernet::Command
- Defined in:
- lib/star_ethernet/command.rb
Class Method Summary collapse
-
._180_degree_turnover_1(k, m, n) ⇒ Object
Page Function Command Details.
- ._180_degree_turnover_2(k, m, n) ⇒ Object
- ._2d_gs1_databar_print_symbol_data_fo_symbol_saving_region(pL, pH, cn, fn, m) ⇒ Object
- ._2d_gs1_databar_set_module_siz(pL, pH, cn, fn, n) ⇒ Object
- ._2d_gs1_databar_set_the_maximum_width_of_the_2d_gs1_databar_expanded_stacked(pL, pH, cn, fn, nL, nH) ⇒ Object
- ._2d_gs1_databar_store_data_in_symbol_saving_region(pL, pH, cn, fn, m, n, d) ⇒ Object
- .acquire_presenter_paper_counter(n) ⇒ Object
- .add_under_line ⇒ Object
- .add_upper_line ⇒ Object
- .align_center ⇒ Object
- .align_left ⇒ Object
- .align_right ⇒ Object
-
.auto_cutter(n) ⇒ Object
Cutter Control.
- .auto_logo_function_on_off_setting(n) ⇒ Object
-
.bar_code(n1, n2, n3, n4, d) ⇒ Object
Bar Code.
- .batch_playback_of_nv_audio(a, t1, t2) ⇒ Object
- .cancel_emphasized_printing ⇒ Object
- .cancel_expanded_high ⇒ Object
- .cancel_expanded_wide ⇒ Object
- .cancel_jis_kanji_character_mode ⇒ Object
- .cancel_page_mode ⇒ Object
-
.cancel_print_data_and_initialize_commands ⇒ Object
Others.
- .cancel_print_data_in_page_mode ⇒ Object
- .cancel_upside_down_printing ⇒ Object
- .cancel_white_black_inversion ⇒ Object
- .carriage_return ⇒ Object
- .clear_horizontal_tab ⇒ Object
- .clear_raster_data ⇒ Object
- .clear_vertical_tab_position ⇒ Object
- .command_initialization ⇒ Object
- .compound_symbol_print_data_in_symbol_saving_region(pL, pH, cn, fn, m) ⇒ Object
- .compound_symbol_set_module_width(pL, pH, cn, fn, n) ⇒ Object
- .compound_symbol_set_the_hri_font(pL, pH, cn, fn, n) ⇒ Object
- .compound_symbol_set_the_maximum_width_of_the_2d_gs1_databar_expanded_stacked(pL, pH, cn, nL, nH) ⇒ Object
- .compound_symbol_store_data_in_symbol_saving_region(pL, pH, cn, fn, m, a, b, d) ⇒ Object
- .define_the_text_search_macro(pL, pH, fn, m, k1, k2, d) ⇒ Object
- .define_the_text_search_string(pL, pH, fn, n, m, k, d) ⇒ Object
- .delete_12_x_24_dot_font_download_characters(c1, c2, n) ⇒ Object
- .double_font_size ⇒ Object
- .drawer_drive(n) ⇒ Object
- .enable_and_disables_text_search(pL, pH, fn, m) ⇒ Object
- .end_document ⇒ Object
- .enter_raster_mode ⇒ Object
- .erase_the_specified_nv_graphics_data_function_67_1(pL, pH, m, fn, a, kc1, kc2, b, xL, xH, yL, yH, cd) ⇒ Object
- .erase_the_specified_nv_graphics_data_function_67_2(p1, p2, p3, p4, m, fn, a, kc1, kc2, xL, xH, yL, yH, cd) ⇒ Object
- .erase_the_specified_vn_graphics_data_function_66_1(pL, pH, m, fn, kc1, kc2) ⇒ Object
- .erase_the_specified_vn_graphics_data_function_66_2(p1, p2, p3, p4, m, fn, kc1, kc2) ⇒ Object
- .execute_eot_mode ⇒ Object
- .execute_external_buzzer_drive(m, n) ⇒ Object
- .execute_ff_mode ⇒ Object
-
.execute_presenter_paper_recovery(n) ⇒ Object
Presenter Related Command Details.
- .execute_real_time_printer_reset ⇒ Object
-
.execute_top_form ⇒ Object
Black Mark Related Command Details.
- .external_buzzer_drive_condition_settings(m, n1, n2) ⇒ Object
- .external_buzzer_drive_execution(m, n1, n2) ⇒ Object
- .external_device_1_drive_instruction_bel ⇒ Object
- .external_device_1_drive_instruction_fs ⇒ Object
- .external_device_2_drive_instruction_em ⇒ Object
- .external_device_2_drive_instruction_sub ⇒ Object
- .feed_paper_in_lines(n) ⇒ Object
- .feed_paper_to_vertical_tab_position ⇒ Object
- .feed_paper_to_vertical_table_position ⇒ Object
- .fine_density_bit_iamge_compatible_with_24_bit_wire_dots(n1, n2, d) ⇒ Object
- .fine_density_bit_image(n1, n2, d) ⇒ Object
-
.form_feed ⇒ Object
Page Control Commands.
- .full_cut_after_line_buffer ⇒ Object
- .full_cut_current_line ⇒ Object
- .function_64_1(pL, pH, m, fn, d1, d2) ⇒ Object
- .function_64_2(p1, p2, p3, p4, m, fn, d1, d2) ⇒ Object
- .function_65_1(pL, pH, m, fn, d1, d2, d3) ⇒ Object
- .function_65_2(p1, p2, p3, p4, m, fn, d1, d2, d3) ⇒ Object
- .get_pdf_417_bar_code_expansion_information ⇒ Object
- .get_qr_code_expansion_information ⇒ Object
- .initialize_asb_etb_counter_and_etb_status(n) ⇒ Object
- .initialize_auto_logo_setting_to_non_volatile_memory ⇒ Object
- .initialize_mark_format_in_the_non_volatile_memory ⇒ Object
- .initialize_presenter_paper_counter(n) ⇒ Object
- .initialize_print_sequence ⇒ Object
- .initialize_raster_mode ⇒ Object
- .initialize_text_search_settings_and_definitions(pL, pH, fn, m) ⇒ Object
-
.line_feed ⇒ Object
Line Spacing.
- .move_absolute_position(n1, n2) ⇒ Object
- .move_horizontal_tab ⇒ Object
- .move_relative_position(n1, n2) ⇒ Object
- .move_vertical_direction_position_line_feed_for_specified_dots(n) ⇒ Object
- .n_4_mm_line_feed(n) ⇒ Object
- .n_8_mm_line_feed(n) ⇒ Object
- .normal_font_size ⇒ Object
- .partial_cut_after_line_buffer ⇒ Object
- .partial_cut_current_line ⇒ Object
-
.playback_nv_audio(z, a, n, c1, c2, d1, d2, t1, t2) ⇒ Object
Audio Command Details.
- .playback_receive_audio(z, n1, n2, n3, d) ⇒ Object
- .print_data_in_page_mode ⇒ Object
- .print_in_page_mode_and_recover ⇒ Object
- .print_logo(n, m) ⇒ Object
- .print_logo_in_batch_and_batch_control_of_registered_logos(m0) ⇒ Object
-
.print_mark(n, m) ⇒ Object
Mark Command Details.
- .print_pdf_417_bar_code ⇒ Object
- .print_qr(text, mistake_correction_level: 0x00, cell_size: 0x00) ⇒ Object
- .print_qr_code ⇒ Object
- .print_starting_timer(m, n) ⇒ Object
-
.print_starting_trigger(m, n) ⇒ Object
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) ⇒ Object
- .print_the_specified_nv_graphics_data_function_112_2(p1, p2, p3, p4, m, fn, a, bx, by, c, xL, xH, yL, yH, d) ⇒ Object
- .print_the_specified_nv_graphics_data_function_69_1(pL, pH, m, fn, kc1, kc2, x, y) ⇒ Object
- .print_the_specified_nv_graphics_data_function_69_2(p1, p2, p3, p4, m, fn, kc1, kc2, x, y) ⇒ Object
- .print_the_text_search_settings_and_definitions(pL, pH, fn, m) ⇒ Object
- .quadruple_font_size ⇒ Object
- .quintuple_font_size ⇒ Object
- .quit_raster_mode ⇒ Object
- .raster_mode_audio_playback ⇒ Object
- .real_time_printer_status ⇒ Object
- .real_time_printer_status_1 ⇒ Object
- .real_time_printer_status_2 ⇒ Object
-
.register_12_x_24_dot_font_download_characters(c1, c2, n, d) ⇒ Object
Download.
-
.register_auto_logo_setting_to_non_volatile_memory ⇒ Object
AUTO LOGO Function Command Details.
- .register_automatic_audio_setting_information(z, e, a, n, c1, c2, d1, d2, t1, t2) ⇒ Object
- .register_chinese_download_characters(c1, c2, d) ⇒ Object
-
.register_logo(n, d) ⇒ Object
Logo.
- .register_mark_format_to_non_volatile_memory ⇒ Object
- .register_user_area_nv_audio_data(z, n, d) ⇒ Object
- .remove_under_line ⇒ Object
- .remove_upper_line ⇒ Object
- .reset_printer_execute_self_print ⇒ Object
- .ring_buzzer(m, t1, t2) ⇒ Object
- .run_the_text_search_macro(pL, pH, fn, m) ⇒ Object
- .select_cancel_2_color_print_mode(n) ⇒ Object
- .select_cancel_underling_mode(n) ⇒ Object
- .select_character_print_direction_in_page_mode ⇒ Object
- .select_code_page(t, n) ⇒ Object
-
.select_emphasized_printing ⇒ Object
Print Mode.
-
.select_font(n) ⇒ Object
Standard Command Font style and Character Set.
- .select_line_feed_amount(n) ⇒ Object
- .select_upside_down_printing ⇒ Object
- .select_white_black_inverted_printing ⇒ Object
-
.selects_page_mode ⇒ Object
Page Mode Command Details.
- .send_all_key_code_the_registered_nv_graphics(pL, pH, fn, d1, d2) ⇒ Object
- .send_nv_graphics_memory_capacity_48_1(pL, pH, m, fn) ⇒ Object
- .send_nv_graphics_memory_capacity_48_2(p1, p2, p3, p4, m, fn) ⇒ Object
- .send_nv_graphics_memory_capacity_51_1(pL, pH, m, fn) ⇒ Object
- .send_nv_graphics_memory_capacity_51_2(p1, p2, p3, p4, m, fn) ⇒ Object
- .send_print_end_counter_initialize(s, n1, n2) ⇒ Object
- .send_raster_data_auto_line_feed(n1, n2, d) ⇒ Object
- .send_registered_individual_logo_crc(pL, pH, fn, kc1, kc2) ⇒ Object
- .set_1_byte_kanji_character_left_right_spaces(n1, n2) ⇒ Object
- .set_2_byte_kanji_character_left_right_spaces(n1, n2) ⇒ Object
-
.set_and_print_symbol(pL, pH, cn, fn, n) ⇒ Object
GS1 2D Code, Compound symbol Command Details.
- .set_ank_right_space(n) ⇒ Object
-
.set_cancel_the_double_wide_high(n1, n2) ⇒ Object
Character Expansion Settings.
- .set_command_character(n) ⇒ Object
- .set_command_character_switch_method(n) ⇒ Object
- .set_double_high ⇒ Object
- .set_double_wide ⇒ Object
-
.set_external_drive_device_1_pulse_with(n1, n2) ⇒ Object
External Device Drive.
-
.set_graphics_data(pL, pH, fn) ⇒ Object
Individual Logo Commands.
- .set_horizontal_tab(n) ⇒ Object
-
.set_left_margin(n) ⇒ Object
Horizontal Direction Printing Position.
- .set_memory_switch(m, n, n1, n2, n3, n4) ⇒ Object
- .set_page_length_to_lines(n) ⇒ Object
- .set_page_length_to_n_lines(n) ⇒ Object
- .set_page_length_to_n_x_24_mm_units(n) ⇒ Object
- .set_partial_cut_before_logo_printing(n) ⇒ Object
- .set_pdf_417_bar_code_data(nL, nH, d) ⇒ Object
-
.set_pdf_417_bar_code_size(n, p1, p2) ⇒ Object
Two-dimensional Bar Code PDF417 Command Details.
- .set_pdf_417_ecc_security_lebel(n) ⇒ Object
- .set_pdf_417_module_aspect_ratio(n) ⇒ Object
- .set_pdf_417_module_x_direction_size(n) ⇒ Object
- .set_presenter_operation_mode(n) ⇒ Object
- .set_presenter_paper_automatic_recover_function_and_automatic_recovery_time(n) ⇒ Object
-
.set_print_color_in_2_color_print_mode(n) ⇒ Object
2 Color Printing Command Detail.
-
.set_print_density(n) ⇒ Object
Print Setting.
- .set_print_region_in_page_mode ⇒ Object
- .set_print_speed(n) ⇒ Object
- .set_qr_code_cell_size(n) ⇒ Object
- .set_qr_code_data_auto_setting(m, nL, nH, d) ⇒ Object
- .set_qr_code_data_manual_setting(a, m1, n1L, n1H, d) ⇒ Object
- .set_qr_code_mistake_correction_level(n) ⇒ Object
-
.set_qr_code_model(n) ⇒ Object
Two-Dimensional Bar Code QR Code Command Details.
- .set_raster_eot_mode ⇒ Object
- .set_raster_ff_mode ⇒ Object
- .set_raster_left_margin(n) ⇒ Object
- .set_raster_mode_nv_audio_playback_count(n) ⇒ Object
- .set_raster_mode_nv_audio_playback_interval_time(n) ⇒ Object
- .set_raster_mode_nv_audio_playback_number(a, n) ⇒ Object
- .set_raster_page_length(n) ⇒ Object
- .set_raster_print_color(n) ⇒ Object
- .set_raster_print_quality ⇒ Object
- .set_raster_right_margin(n) ⇒ Object
- .set_raster_to_margin(n) ⇒ Object
-
.set_reduced_printing(h, v) ⇒ Object
Reduced Printing Function Command Details.
- .set_right_margin(n) ⇒ Object
-
.set_status_transmission_conditions(n) ⇒ Object
Status.
-
.set_text_search(pL, pH, fn, param) ⇒ Object
Text Search Command Details.
- .set_the_number_of_times_to_run_the_text_search_macro(pL, pH, fn, m) ⇒ Object
- .set_to_print_the_string_the_matches_in_the_text_search(pL, pH, fn, m) ⇒ Object
-
.set_unicode(pL, pH, fn, params) ⇒ Object
UTF Commands.
- .set_unicode_analysis(pL, pH, fn, m) ⇒ Object
- .set_user_macro_1(nL, nH, d) ⇒ Object
- .set_utf_8_cjk_unified_ideograph_font(pL, pH, fn, n1, n2, n3, n4) ⇒ Object
- .set_vertical_tab_position(n) ⇒ Object
- .setting_of_unicode_ambiguous_character(pL, pH, fn, m) ⇒ Object
- .sextuple_font_size ⇒ Object
- .snout_led_output(m, t1, t2) ⇒ Object
- .specifies_cancels_ank_download_characters(n) ⇒ Object
- .specify_12_dot_pitch ⇒ Object
- .specify_14_dot_pitch ⇒ Object
- .specify_15_dot_pitch ⇒ Object
- .specify_16_dot_pitch ⇒ Object
- .specify_cancel_expanded_high(n) ⇒ Object
- .specify_cancel_expanded_wide(n) ⇒ Object
- .specify_cancel_shift_jis_kanji_character_mode(n) ⇒ Object
- .specify_cancel_slash_zero(n) ⇒ Object
- .specify_cancel_smoothing(n) ⇒ Object
- .specify_cancel_upperline(n) ⇒ Object
- .specify_character_vertical_direction_absolute_position_in_page_mode ⇒ Object
- .specify_character_vertical_direction_relative_position_in_page_mode ⇒ Object
-
.specify_graphics_data_1(pL, pH, n, fn, params) ⇒ Object
Graphics data Command Details.
- .specify_graphics_data_2(p1, p2, p3, p4, m, fn, params) ⇒ Object
- .specify_international_character_set(n) ⇒ Object
-
.specify_jis_character_mode ⇒ Object
Kanji characters.
- .specify_line_spacing_to_3_mm ⇒ Object
- .specify_mark_color_and_mark_horizontal_width_for_each_number(m, c, w) ⇒ Object
- .specify_mark_height_and_line_feed(h, v) ⇒ Object
- .specify_position_alignment(n) ⇒ Object
- .specify_snout_led_no_off(m, t1, t2) ⇒ Object
- .specify_snout_operation_mode(m, t1, t2) ⇒ Object
-
.standard_density_bit_image_K(n1, n2, d) ⇒ Object
Bit Image Graphics.
- .standard_density_bit_image_L(n1, n2, d) ⇒ Object
- .start_document ⇒ Object
- .status_acquisition ⇒ Object
- .stop_vn_audio ⇒ Object
- .transfer_raster_data(n1, n2, d) ⇒ Object
- .transmit_all_types_of_multibyte_fonts(pL, pH, fn, d1, d2) ⇒ Object
- .transmit_capacity_used_registered_individual_nv_graphics(pL, pH, fn, kc1, kc2) ⇒ Object
-
.transmit_printer_information(pL, pH, fn, params) ⇒ Object
Printer Information Transmission Commands.
- .triple_font_size ⇒ Object
- .update_asb_etb_status ⇒ Object
- .write_blank_code_page_data(n1, n2, d) ⇒ Object
Class Method Details
._180_degree_turnover_1(k, m, n) ⇒ Object
Page Function Command Details
801 802 803 |
# 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) ⇒ Object
805 806 807 |
# 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) ⇒ Object
775 776 777 |
# File 'lib/star_ethernet/command.rb', line 775 def self.(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) ⇒ Object
763 764 765 |
# File 'lib/star_ethernet/command.rb', line 763 def self.(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) ⇒ Object
767 768 769 |
# File 'lib/star_ethernet/command.rb', line 767 def self.(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) ⇒ Object
771 772 773 |
# File 'lib/star_ethernet/command.rb', line 771 def self.(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) ⇒ Object
615 616 617 |
# 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 ⇒ Object
78 79 80 |
# File 'lib/star_ethernet/command.rb', line 78 def self.add_under_line select_cancel_underling_mode(0x01) end |
.add_upper_line ⇒ Object
86 87 88 |
# File 'lib/star_ethernet/command.rb', line 86 def self.add_upper_line specify_cancel_upperline(0x01) end |
.align_center ⇒ Object
52 53 54 |
# File 'lib/star_ethernet/command.rb', line 52 def self.align_center specify_position_alignment(0x01) end |
.align_left ⇒ Object
48 49 50 |
# File 'lib/star_ethernet/command.rb', line 48 def self.align_left specify_position_alignment(0x00) end |
.align_right ⇒ Object
56 57 58 |
# File 'lib/star_ethernet/command.rb', line 56 def self.align_right specify_position_alignment(0x02) end |
.auto_cutter(n) ⇒ Object
Cutter Control
359 360 361 |
# 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) ⇒ Object
667 668 669 |
# 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) ⇒ Object
Bar Code
353 354 355 |
# File 'lib/star_ethernet/command.rb', line 353 def self.(n1, n2, n3, n4, d) [0x1b, 0x62, n1, n2, n3, n4, *d, 0x1e].pack('C*') end |
.batch_playback_of_nv_audio(a, t1, t2) ⇒ Object
913 914 915 |
# 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 ⇒ Object
183 184 185 |
# File 'lib/star_ethernet/command.rb', line 183 def self.cancel_emphasized_printing [0x1b, 0x46].pack('C*') end |
.cancel_expanded_high ⇒ Object
173 174 175 |
# File 'lib/star_ethernet/command.rb', line 173 def self. [0x1b, 0x14].pack('C*') end |
.cancel_expanded_wide ⇒ Object
165 166 167 |
# File 'lib/star_ethernet/command.rb', line 165 def self. [0x14].pack('C*') end |
.cancel_jis_kanji_character_mode ⇒ Object
447 448 449 |
# File 'lib/star_ethernet/command.rb', line 447 def self.cancel_jis_kanji_character_mode [0x1b, 0x71].pack('C*') end |
.cancel_page_mode ⇒ Object
821 822 823 |
# 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 ⇒ Object
Others
469 470 471 |
# 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 ⇒ Object
849 850 851 |
# 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 ⇒ Object
207 208 209 |
# File 'lib/star_ethernet/command.rb', line 207 def self.cancel_upside_down_printing [0x12].pack('C*') end |
.cancel_white_black_inversion ⇒ Object
199 200 201 |
# File 'lib/star_ethernet/command.rb', line 199 def self.cancel_white_black_inversion [0x1b, 0x35].pack('C*') end |
.carriage_return ⇒ Object
221 222 223 |
# File 'lib/star_ethernet/command.rb', line 221 def self.carriage_return [0x0d].pack('C*') end |
.clear_horizontal_tab ⇒ Object
289 290 291 |
# File 'lib/star_ethernet/command.rb', line 289 def self.clear_horizontal_tab [0x1b, 0x44, 0x00].pack('C*') end |
.clear_raster_data ⇒ Object
497 498 499 |
# File 'lib/star_ethernet/command.rb', line 497 def self.clear_raster_data [0x1b, 0x2a, 0x72, 0x43].pack('C*') end |
.clear_vertical_tab_position ⇒ Object
267 268 269 |
# File 'lib/star_ethernet/command.rb', line 267 def self.clear_vertical_tab_position [0x1b, 0x42, 0x00].pack('C*') end |
.command_initialization ⇒ Object
473 474 475 |
# 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) ⇒ Object
795 796 797 |
# 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) ⇒ Object
779 780 781 |
# 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) ⇒ Object
787 788 789 |
# 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) ⇒ Object
783 784 785 |
# File 'lib/star_ethernet/command.rb', line 783 def self.(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) ⇒ Object
791 792 793 |
# 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) ⇒ Object
875 876 877 |
# 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) ⇒ Object
871 872 873 |
# 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) ⇒ Object
311 312 313 |
# 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 ⇒ Object
27 28 29 |
# 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) ⇒ Object
501 502 503 |
# File 'lib/star_ethernet/command.rb', line 501 def self.drawer_drive(n) [0x1b, 0x2a, 0x72, 0x44, n, 0x00].pack('C*') end |
.enable_and_disables_text_search(pL, pH, fn, m) ⇒ Object
859 860 861 |
# File 'lib/star_ethernet/command.rb', line 859 def self.enable_and_disables_text_search(pL, pH, fn, m) [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m].pack('C*') end |
.end_document ⇒ Object
18 19 20 |
# 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 ⇒ Object
489 490 491 |
# 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) ⇒ Object
967 968 969 |
# 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) ⇒ Object
971 972 973 |
# 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) ⇒ Object
959 960 961 |
# 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) ⇒ Object
963 964 965 |
# 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 ⇒ Object
553 554 555 |
# 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) ⇒ Object
557 558 559 |
# 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 ⇒ Object
549 550 551 |
# File 'lib/star_ethernet/command.rb', line 549 def self.execute_ff_mode [0x1b, 0x0c, 0x00].pack('C*') end |
.execute_presenter_paper_recovery(n) ⇒ Object
Presenter Related Command Details
603 604 605 |
# 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 ⇒ Object
425 426 427 |
# File 'lib/star_ethernet/command.rb', line 425 def self.execute_real_time_printer_reset [0x1b, 0x06, 0x18].pack('C*') end |
.execute_top_form ⇒ Object
Black Mark Related Command Details
579 580 581 |
# 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) ⇒ Object
389 390 391 |
# 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) ⇒ Object
393 394 395 |
# 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 ⇒ Object
369 370 371 |
# 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 ⇒ Object
373 374 375 |
# 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 ⇒ Object
381 382 383 |
# 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 ⇒ Object
377 378 379 |
# 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) ⇒ Object
225 226 227 |
# 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 ⇒ Object
259 260 261 |
# 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 ⇒ Object
587 588 589 |
# 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) ⇒ Object
333 334 335 |
# 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) ⇒ Object
329 330 331 |
# 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 ⇒ Object
Page Control Commands
247 248 249 |
# File 'lib/star_ethernet/command.rb', line 247 def self.form_feed [0x0c].pack('C*') end |
.full_cut_after_line_buffer ⇒ Object
69 70 71 |
# File 'lib/star_ethernet/command.rb', line 69 def self.full_cut_after_line_buffer auto_cutter(0x02) end |
.full_cut_current_line ⇒ Object
61 62 63 |
# 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) ⇒ Object
943 944 945 |
# 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) ⇒ Object
947 948 949 |
# 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) ⇒ Object
951 952 953 |
# 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) ⇒ Object
955 956 957 |
# 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 ⇒ Object
713 714 715 |
# File 'lib/star_ethernet/command.rb', line 713 def self. [0x1b, 0x1d, 0x78, 0x49].pack('C*') end |
.get_qr_code_expansion_information ⇒ Object
753 754 755 |
# 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) ⇒ Object
433 434 435 |
# 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 ⇒ Object
663 664 665 |
# 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 ⇒ Object
653 654 655 |
# 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) ⇒ Object
619 620 621 |
# 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 ⇒ Object
7 8 9 10 11 12 |
# 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 ⇒ Object
485 486 487 |
# 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) ⇒ Object
879 880 881 |
# 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 ⇒ Object
Line Spacing
217 218 219 |
# File 'lib/star_ethernet/command.rb', line 217 def self.line_feed [0x1a].pack('C*') end |
.move_absolute_position(n1, n2) ⇒ Object
293 294 295 |
# 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 ⇒ Object
281 282 283 |
# File 'lib/star_ethernet/command.rb', line 281 def self.move_horizontal_tab [0x09].pack('C*') end |
.move_relative_position(n1, n2) ⇒ Object
297 298 299 |
# 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) ⇒ Object
545 546 547 |
# 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) ⇒ Object
237 238 239 |
# 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) ⇒ Object
241 242 243 |
# 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 ⇒ Object
23 24 25 |
# 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 ⇒ Object
73 74 75 |
# File 'lib/star_ethernet/command.rb', line 73 def self.partial_cut_after_line_buffer auto_cutter(0x03) end |
.partial_cut_current_line ⇒ Object
65 66 67 |
# 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) ⇒ Object
Audio Command Details
893 894 895 |
# 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) ⇒ Object
901 902 903 |
# 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 ⇒ Object
841 842 843 |
# File 'lib/star_ethernet/command.rb', line 841 def self.print_data_in_page_mode [0x1b, 0x1d, 0x50, 0x36].pack('C*') end |
.print_in_page_mode_and_recover ⇒ Object
845 846 847 |
# File 'lib/star_ethernet/command.rb', line 845 def self.print_in_page_mode_and_recover [0x1b, 0x1d, 0x50, 0x37].pack('C*') end |
.print_logo(n, m) ⇒ Object
343 344 345 |
# File 'lib/star_ethernet/command.rb', line 343 def self.print_logo(n, m) [0x1b, 0x1c, 0x70, n, m].pack('C*') end |
.print_logo_in_batch_and_batch_control_of_registered_logos(m0) ⇒ Object
347 348 349 |
# File 'lib/star_ethernet/command.rb', line 347 def self.print_logo_in_batch_and_batch_control_of_registered_logos(m0) [0x1b, 0x1e, 0x4c, m].pack('C*') end |
.print_mark(n, m) ⇒ Object
Mark Command Details
637 638 639 |
# File 'lib/star_ethernet/command.rb', line 637 def self.print_mark(n, m) [0x1b, 0x1d, 0x2a, 0x30, n, *m].pack('C*') end |
.print_pdf_417_bar_code ⇒ Object
709 710 711 |
# File 'lib/star_ethernet/command.rb', line 709 def self. [0x1b, 0x1d, 0x78, 0x50].pack('C*') end |
.print_qr(text, mistake_correction_level: 0x00, cell_size: 0x00) ⇒ Object
94 95 96 97 98 99 100 101 102 |
# File 'lib/star_ethernet/command.rb', line 94 def self.print_qr(text, mistake_correction_level: 0x00, cell_size: 0x00) nH, nL = text.bytesize.divmod(256) [ set_qr_code_mistake_correction_level(mistake_correction_level), set_qr_code_cell_size(cell_size), set_qr_code_data_auto_setting(0x00, nL, nH, text), print_qr_code, ].join end |
.print_qr_code ⇒ Object
749 750 751 |
# File 'lib/star_ethernet/command.rb', line 749 def self.print_qr_code [0x1b, 0x1d, 0x79, 0x50].pack('C*') end |
.print_starting_timer(m, n) ⇒ Object
723 724 725 |
# File 'lib/star_ethernet/command.rb', line 723 def self.print_starting_timer(m, n) [0x1b, 0x1d, 0x67, 0x31, m, n].pack('C*') end |
.print_starting_trigger(m, n) ⇒ Object
Details of Print Starting Trigger Control Command
719 720 721 |
# File 'lib/star_ethernet/command.rb', line 719 def self.print_starting_trigger(m, n) [0x1b, 0x1d, 0x67, 0x30, m, n].pack('C*') end |
.print_the_specified_nv_graphics_data_function_112_1(pL, pH, m, fn, a, bx, by, c, xL, xH, yL, yH, d) ⇒ Object
983 984 985 |
# File 'lib/star_ethernet/command.rb', line 983 def self.print_the_specified_nv_graphics_data_function_112_1(pL, pH, m, fn, a, bx, by, c, xL, xH, yL, yH, d) [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn, a, bx, by, c, xL, xH, yL, yH, *d].pack('C*') end |
.print_the_specified_nv_graphics_data_function_112_2(p1, p2, p3, p4, m, fn, a, bx, by, c, xL, xH, yL, yH, d) ⇒ Object
987 988 989 |
# File 'lib/star_ethernet/command.rb', line 987 def self.print_the_specified_nv_graphics_data_function_112_2(p1, p2, p3, p4, m ,fn, a, bx, by, c, xL, xH, yL, yH, d) [0x1b, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m ,fn, a, bx, by, c, xL, xH, yL, yH, *d].pack('C*') end |
.print_the_specified_nv_graphics_data_function_69_1(pL, pH, m, fn, kc1, kc2, x, y) ⇒ Object
975 976 977 |
# File 'lib/star_ethernet/command.rb', line 975 def self.print_the_specified_nv_graphics_data_function_69_1(pL, pH, m, fn, kc1, kc2, x, y) [0x1b, 0x1d, 0x28, 0x4c, pL, pH, m, fn, kc1, kc2, x, y].pack('C*') end |
.print_the_specified_nv_graphics_data_function_69_2(p1, p2, p3, p4, m, fn, kc1, kc2, x, y) ⇒ Object
979 980 981 |
# File 'lib/star_ethernet/command.rb', line 979 def self.print_the_specified_nv_graphics_data_function_69_2(p1, p2, p3, p4, m, fn, kc1, kc2, x, y) [0x1b, 0x1d, 0x38, 0x4c, p1, p2, p3, p4, m, fn, kc1, kc2, x, y].pack('C*') end |
.print_the_text_search_settings_and_definitions(pL, pH, fn, m) ⇒ Object
883 884 885 |
# File 'lib/star_ethernet/command.rb', line 883 def self.print_the_text_search_settings_and_definitions(pL, pH, fn, m) [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m].pack('C*') end |
.quadruple_font_size ⇒ Object
35 36 37 |
# 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 ⇒ Object
39 40 41 |
# 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 ⇒ Object
493 494 495 |
# File 'lib/star_ethernet/command.rb', line 493 def self.quit_raster_mode [0x1b, 0x2a, 0x72, 0x42].pack('C*') end |
.raster_mode_audio_playback ⇒ Object
561 562 563 |
# 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 ⇒ Object
413 414 415 |
# 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 ⇒ Object
417 418 419 |
# File 'lib/star_ethernet/command.rb', line 417 def self.real_time_printer_status_1 [0x05].pack('C*') end |
.real_time_printer_status_2 ⇒ Object
421 422 423 |
# 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) ⇒ Object
Download
307 308 309 |
# 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 ⇒ Object
AUTO LOGO Function Command Details
659 660 661 |
# 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) ⇒ Object
905 906 907 |
# 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) ⇒ Object
463 464 465 |
# 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_logo(n, d) ⇒ Object
Logo
339 340 341 |
# File 'lib/star_ethernet/command.rb', line 339 def self.register_logo(n, d) [0x1b, 0x1c, 0x71, n, *d].pack('C*') end |
.register_mark_format_to_non_volatile_memory ⇒ Object
649 650 651 |
# 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) ⇒ Object
909 910 911 |
# 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 ⇒ Object
82 83 84 |
# File 'lib/star_ethernet/command.rb', line 82 def self.remove_under_line select_cancel_underling_mode(0x00) end |
.remove_upper_line ⇒ Object
90 91 92 |
# File 'lib/star_ethernet/command.rb', line 90 def self.remove_upper_line specify_cancel_upperline(0x00) end |
.reset_printer_execute_self_print ⇒ Object
481 482 483 |
# 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) ⇒ Object
385 386 387 |
# 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) ⇒ Object
887 888 889 |
# 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) ⇒ Object
597 598 599 |
# 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) ⇒ Object
187 188 189 |
# 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 ⇒ Object
825 826 827 |
# 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) ⇒ Object
111 112 113 |
# 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 ⇒ Object
Print Mode
179 180 181 |
# File 'lib/star_ethernet/command.rb', line 179 def self.select_emphasized_printing [0x1b, 0x45].pack('C*') end |
.select_font(n) ⇒ Object
Standard Command Font style and Character Set
107 108 109 |
# 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) ⇒ Object
229 230 231 |
# 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 ⇒ Object
203 204 205 |
# File 'lib/star_ethernet/command.rb', line 203 def self.select_upside_down_printing [0x1f].pack('C*') end |
.select_white_black_inverted_printing ⇒ Object
195 196 197 |
# File 'lib/star_ethernet/command.rb', line 195 def self.select_white_black_inverted_printing [0x1b, 0x34].pack('C*') end |
.selects_page_mode ⇒ Object
Page Mode Command Details
817 818 819 |
# 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) ⇒ Object
1005 1006 1007 |
# 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) ⇒ Object
927 928 929 |
# 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) ⇒ Object
931 932 933 |
# 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) ⇒ Object
935 936 937 |
# 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) ⇒ Object
939 940 941 |
# 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) ⇒ Object
437 438 439 |
# 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) ⇒ Object
537 538 539 |
# 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) ⇒ Object
997 998 999 |
# 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) ⇒ Object
459 460 461 |
# 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) ⇒ Object
455 456 457 |
# 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) ⇒ Object
GS1 2D Code, Compound symbol Command Details
759 760 761 |
# 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) ⇒ Object
127 128 129 |
# 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) ⇒ Object
Character Expansion Settings
149 150 151 |
# 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) ⇒ Object
671 672 673 |
# 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) ⇒ Object
679 680 681 |
# 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 ⇒ Object
169 170 171 |
# File 'lib/star_ethernet/command.rb', line 169 def self.set_double_high [0x1b, 0x0e].pack('C*') end |
.set_double_wide ⇒ Object
161 162 163 |
# 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) ⇒ Object
External Device Drive
365 366 367 |
# 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) ⇒ Object
Individual Logo Commands
993 994 995 |
# 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) ⇒ Object
285 286 287 |
# 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) ⇒ Object
Horizontal Direction Printing Position
273 274 275 |
# 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) ⇒ Object
477 478 479 |
# 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) ⇒ Object
583 584 585 |
# 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) ⇒ Object
251 252 253 |
# 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) ⇒ Object
255 256 257 |
# 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) ⇒ Object
683 684 685 |
# 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) ⇒ Object
705 706 707 |
# File 'lib/star_ethernet/command.rb', line 705 def self.(nL, nH, d) [0x1b, 0x1d, 0x78, 0x44,nL, nH, *d].pack('C*') end |
.set_pdf_417_bar_code_size(n, p1, p2) ⇒ Object
Two-dimensional Bar Code PDF417 Command Details
689 690 691 |
# File 'lib/star_ethernet/command.rb', line 689 def self.(n, p1, p2) [0x1b, 0x1d, 0x78, 0x53, 0x30, n, p1, p2].pack('C*') end |
.set_pdf_417_ecc_security_lebel(n) ⇒ Object
693 694 695 |
# 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) ⇒ Object
701 702 703 |
# 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) ⇒ Object
697 698 699 |
# 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) ⇒ Object
611 612 613 |
# 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) ⇒ Object
607 608 609 |
# 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) ⇒ Object
2 Color Printing Command Detail
593 594 595 |
# 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) ⇒ Object
Print Setting
399 400 401 |
# 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 ⇒ Object
829 830 831 |
# 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) ⇒ Object
403 404 405 |
# 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) ⇒ Object
737 738 739 |
# 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) ⇒ Object
741 742 743 |
# 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) ⇒ Object
745 746 747 |
# 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) ⇒ Object
733 734 735 |
# 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) ⇒ Object
Two-Dimensional Bar Code QR Code Command Details
729 730 731 |
# 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 ⇒ Object
505 506 507 |
# 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 ⇒ Object
509 510 511 |
# 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) ⇒ Object
521 522 523 |
# 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) ⇒ Object
569 570 571 |
# 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) ⇒ Object
573 574 575 |
# 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) ⇒ Object
565 566 567 |
# 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) ⇒ Object
513 514 515 |
# 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) ⇒ Object
533 534 535 |
# 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 ⇒ Object
517 518 519 |
# 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) ⇒ Object
525 526 527 |
# 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) ⇒ Object
529 530 531 |
# 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) ⇒ Object
Reduced Printing Function Command Details
811 812 813 |
# 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) ⇒ Object
277 278 279 |
# 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) ⇒ Object
Status
409 410 411 |
# File 'lib/star_ethernet/command.rb', line 409 def self.set_status_transmission_conditions(n) [0x1b, 0x1e, 0x61, n].pack('C*') end |
.set_text_search(pL, pH, fn, param) ⇒ Object
Text Search Command Details
855 856 857 |
# File 'lib/star_ethernet/command.rb', line 855 def self.set_text_search(pL, pH, fn, param) [0x1b, 0x29, 0x42, pL, pH, fn, param].pack('C*') end |
.set_the_number_of_times_to_run_the_text_search_macro(pL, pH, fn, m) ⇒ Object
863 864 865 |
# 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_to_print_the_string_the_matches_in_the_text_search(pL, pH, fn, m) ⇒ Object
867 868 869 |
# File 'lib/star_ethernet/command.rb', line 867 def self.set_to_print_the_string_the_matches_in_the_text_search(pL, pH, fn, m) [0x1b, 0x1d, 0x29, 0x42, pL, pH, fn, m].pack('C*') end |
.set_unicode(pL, pH, fn, params) ⇒ Object
UTF Commands
1021 1022 1023 |
# 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) ⇒ Object
1025 1026 1027 |
# 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) ⇒ Object
675 676 677 |
# 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) ⇒ Object
1033 1034 1035 |
# 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) ⇒ Object
263 264 265 |
# 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) ⇒ Object
1029 1030 1031 |
# 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 ⇒ Object
43 44 45 |
# 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) ⇒ Object
631 632 633 |
# 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) ⇒ Object
315 316 317 |
# 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 ⇒ Object
131 132 133 |
# File 'lib/star_ethernet/command.rb', line 131 def self.specify_12_dot_pitch [0x1b, 0x4d].pack('C*') end |
.specify_14_dot_pitch ⇒ Object
143 144 145 |
# File 'lib/star_ethernet/command.rb', line 143 def self.specify_14_dot_pitch [0x1b, 0x67].pack('C*') end |
.specify_15_dot_pitch ⇒ Object
135 136 137 |
# File 'lib/star_ethernet/command.rb', line 135 def self.specify_15_dot_pitch [0x1b, 0x50].pack('C*') end |
.specify_16_dot_pitch ⇒ Object
139 140 141 |
# File 'lib/star_ethernet/command.rb', line 139 def self.specify_16_dot_pitch [0x1b, 0x3a].pack('C*') end |
.specify_cancel_expanded_high(n) ⇒ Object
157 158 159 |
# File 'lib/star_ethernet/command.rb', line 157 def self.(n) [0x1b, 0x68, n].pack('C*') end |
.specify_cancel_expanded_wide(n) ⇒ Object
153 154 155 |
# File 'lib/star_ethernet/command.rb', line 153 def self.(n) [0x1b, 0x57, n].pack('C*') end |
.specify_cancel_shift_jis_kanji_character_mode(n) ⇒ Object
451 452 453 |
# 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) ⇒ Object
123 124 125 |
# 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) ⇒ Object
211 212 213 |
# 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) ⇒ Object
191 192 193 |
# 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 ⇒ Object
833 834 835 |
# 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 ⇒ Object
837 838 839 |
# 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) ⇒ Object
Graphics data Command Details
919 920 921 |
# 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) ⇒ Object
923 924 925 |
# 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) ⇒ Object
119 120 121 |
# 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 ⇒ Object
Kanji characters
443 444 445 |
# 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 ⇒ Object
233 234 235 |
# 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) ⇒ Object
645 646 647 |
# 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) ⇒ Object
641 642 643 |
# 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) ⇒ Object
301 302 303 |
# 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) ⇒ Object
627 628 629 |
# 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) ⇒ Object
623 624 625 |
# 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) ⇒ Object
Bit Image Graphics
321 322 323 |
# 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) ⇒ Object
325 326 327 |
# 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 ⇒ Object
14 15 16 |
# File 'lib/star_ethernet/command.rb', line 14 def self.start_document self.send_print_end_counter_initialize(0x03, 0x00, 0x00) end |
.status_acquisition ⇒ Object
3 4 5 |
# File 'lib/star_ethernet/command.rb', line 3 def self.status_acquisition ([0x32] + 50.times.map { 0x00 }).pack('C*') end |
.stop_vn_audio ⇒ Object
897 898 899 |
# 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) ⇒ Object
541 542 543 |
# 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) ⇒ Object
1015 1016 1017 |
# 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) ⇒ Object
1001 1002 1003 |
# 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) ⇒ Object
Printer Information Transmission Commands
1011 1012 1013 |
# 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 ⇒ Object
31 32 33 |
# 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 ⇒ Object
429 430 431 |
# 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) ⇒ Object
115 116 117 |
# 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 |