tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
5
ZUGRIFFE
635
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    TheIncredibl3 Tutorials.de Gastzugang
    Hallo Community!

    Bin neu hier und habe direkt mal ein Problem. Und zwar möchte ich ein alternatives
    Logo (Stempel) in den Drucker speichern. Vielleicht kann mir hier wer helfen

    In meiner Kassensoftware gebe idh die Steuersequenzen so ein (direkt in mein Bon-Formular):
    {ASC:27}m löst z.B. einen Bonanschnitt aus, oder {ASC:27}U bringt den Drucker in den
    unidirektionalen Modus. Also ist ESC = {ASC:27}. Soweit ist mir das ja klar. Nun möchte ich
    aber eben ein Logo in den Drucker speichern. Im "Programmers Guide" zu meinem "ND 210"
    von Wincor Nixdorf steht zum Thema Logo dies:

    GS * x y [d] x * y * 8
    Function:
    Defines a down-loaded bit-image

    Code:
    <1D>H <2A>H <x> <y> [<d>] x * y * 8

    Range:
    1 ≤ x ≤ 255
    1 ≤ y ≤ 255
    x * y ≤ 404

    Description: Defines a downloaded bit-image using the dots specified by x and y.

    Notes: The number of dots is x*8 in the horizontal direction, and y*8 in the
    vertical direction.
    The d indicates the bit-image data.

    Wie geht das nun genau? Da ich totaler Anfänger bin, habe ich entsprechend null Ahnung und weiß
    daher nicht, wo und wie ich anfangen soll...

    Ein Tool mit Namen "Flash-ROM Loader Utility”, welches speziell für das Einspeisen eines Logos
    in genau den Drucker gedacht ist, will der Hersteller nicht an Endbenutzer herausgeben...

    Hier noch meine Daten:

    Drucker: Wincor Nixdorf ND 210
    Betriebssystem: Microsoft Windows XP
    Software: AFS-Kasse Basic

    Besten Dank im Voraus
     

  2. #2
    deepthroat deepthroat ist offline Mitglied Diamant
    tutorials.de Premium-User
    Registriert seit
    Jun 2005
    Beiträge
    8.169
    Hi.

    Ich bin mir nicht sicher ob ich die Notation aus dem Guide richtig verstehe. Gibt's in dem Buch denn eine Erklärung dafür?

    Du könntest ja mal folgendes probieren:

    GS == 0x1d == 29

    Code :
    1
    
    {ASC:29}*{ASC:1}{ASC:1}{ASC:153}{ASC:24}{ASC:24}{ASC:255}{ASC:255}{ASC:24}{ASC:24}{ASC:153}{ASC:1}*{ASC:1}*8
    Danach mußt du das Image noch mit dem GS / Befehl drucken.

    Es sollte etwas in der Art gedruckt werden:
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    
    X  XX  X
       XX
       XX
    XXXXXXXX
    XXXXXXXX
       XX
       XX
    X  XX  X
    Gruß
     
    If at first you don't succeed, try again. Then quit. No use being a damn fool about it.

  3. #3
    TheIncredibl3 Tutorials.de Gastzugang
    Zitat Zitat von deepthroat Beitrag anzeigen
    Hi.

    Ich bin mir nicht sicher ob ich die Notation aus dem Guide richtig verstehe. Gibt's in dem Buch denn eine Erklärung dafür?
    Als Erläuterung wird dies geboten:

    XXXX Command Character or Command Sequence

    Function: Name of the command

    Code: Code Sequence (Notation)
    Hexadecimal = < >H
    Decimal = < >
    Binary = < >B
    Repeat bracket contents = [ ] k Format

    Range: Describes the permitted range of values.

    Description: Describes the function of the command.

    Notes: Provides important information on settings.

    Default: Describes the standard values.

    Example: Examples of the command in use.

    Reference: Reference to other commands

    NOTE: Some of the command descriptions may include additional conditions to be met.
    In the sentence:
    "This command is enabled only when put at the beginning of a line".
    The meaning of the underlined part is:
    1. No print data (incl. spaces) are in the current print buffer.
    2. The print position is not specified by ESC \ or ESC $ commands.

    Hier mal das komplette Programmier-Handbuch, welches ich vom Support bekommen habe:
    http://rapidshare.com/files/425848083/prog210__1_.pdf


    Den Code muss ich noch testen...
     

  4. #4
    deepthroat deepthroat ist offline Mitglied Diamant
    tutorials.de Premium-User
    Registriert seit
    Jun 2005
    Beiträge
    8.169
    Hi.

    OK, ich denke jetzt ist es mir etwas klarer geworden.

    Der Code war noch etwas falsch...

    Nächster Versuch:
    Code :
    1
    2
    
    {ASC:29}*{ASC:4}{ASC:4}{ASC:0}{ASC:15}{ASC:240}{ASC:0}{ASC:0}?{ASC:254}{ASC:0}{ASC:1}{ASC:252}{ASC:31}{ASC:0}{ASC:3}{ASC:192}{ASC:3}{ASC:192}{ASC:7}{ASC:0}{ASC:0}{ASC:224}{ASC:14}{ASC:0}{ASC:0}p{ASC:28}{ASC:0}{ASC:0}8{ASC:24}{ASC:0}p{ASC:28}0 {ASC:28}{ASC:12}px{ASC:15}{ASC:14}`{ASC:252}{ASC:3}{ASC:6}`x{ASC:3}{ASC:134}{ASC:224}x{ASC:1}{ASC:131}{ASC:192} {ASC:1}{ASC:199}{ASC:192}{ASC:0}{ASC:1}{ASC:195}{ASC:192}{ASC:0}{ASC:1}{ASC:195}{ASC:192}{ASC:0}{ASC:0}{ASC:195}{ASC:192}{ASC:0}{ASC:1}{ASC:195}{ASC:192} {ASC:1}{ASC:195}{ASC:224}x{ASC:1}{ASC:135}`|{ASC:3}{ASC:134}`{ASC:248}{ASC
    :3}{ASC:6}px{ASC:15}{ASC:14}00{ASC:28}{ASC:12}8{ASC:0}x{ASC:28}{ASC:28}{ASC:0}{ASC:0}8{ASC:14}{ASC:0}{ASC:0}p{ASC:7}{ASC:0}{ASC:0}{ASC:224}{ASC:3}{ASC:192}{ASC:3}{ASC:192}{ASC:1}{ASC:248}{ASC:31}{ASC:128}{ASC:0}{ASC:127}{ASC:254}{ASC:0}{ASC:0}{ASC:15}{ASC:240}{ASC:0}{ASC:29}/{ASC:48}
    Gruß
     
    If at first you don't succeed, try again. Then quit. No use being a damn fool about it.

  5. #5
    TheIncredibl3 TheIncredibl3 ist offline Grünschnabel
    Registriert seit
    Oct 2010
    Beiträge
    1
    Hallo,

    dein Code hat funktioniert, ich habe allerdings nur ein unklares kleines Feld auf dem Bon gesehen.

    Unerwarteterweise hat der Hersteller das Flash-Loader-Tool doch noch (nach erneuter Anfrage)
    rausgerückt, sodass mithilfe einer DOS-Bootdiskette nun problemlos jedes monochrome Logo
    in den Drucker geladen werden kann. Also ist es nicht mehr notwendig, mit aufwendigen
    Steuersequenzen zu arbeiten. Vielen Dank für deine Hilfe, eventuell komme ich nochmal
    auf dieses Forum zurück, falls ich das Kundendisplay an den Drucker anschließen möchte.

    Gruß

    TheIncredibl3
     

  6. #6
    deepthroat deepthroat ist offline Mitglied Diamant
    tutorials.de Premium-User
    Registriert seit
    Jun 2005
    Beiträge
    8.169
    Zitat Zitat von TheIncredibl3 Beitrag anzeigen
    dein Code hat funktioniert, ich habe allerdings nur ein unklares kleines Feld auf dem Bon gesehen.
    Schade, es sollte ein Smiley werden (32x32 dots).

    Gruß
     
    If at first you don't succeed, try again. Then quit. No use being a damn fool about it.

Ähnliche Themen

  1. Anfänger-Frage
    Von H2R57 im Forum Visual Basic 6.0
    Antworten: 4
    Letzter Beitrag: 04.07.07, 07:52
  2. Frage zu Fontgrößen (allgemein)
    Von Kai-Behncke im Forum Typografie
    Antworten: 2
    Letzter Beitrag: 28.10.05, 14:19
  3. Antworten: 5
    Letzter Beitrag: 01.04.05, 13:00
  4. Allgemein Frage zu Funktionen
    Von blumshuett im Forum PHP
    Antworten: 1
    Letzter Beitrag: 21.03.05, 16:37
  5. Frage zu PHP allgemein ....
    Von fristan im Forum PHP
    Antworten: 4
    Letzter Beitrag: 21.01.03, 21:08