Citizen CBM-270 user manual Lprint CHR$ 0 CHR$

Page 85

CBM-270 User’s Manual

GS

C1

n1

n2

n3

n4

n5

n6

 

[Function]

Setting the numbering counter mode (A)

 

[Code]

<1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6>

[Range]

0 £ n1, N2, N3, N4, N5, N6 £ 255

 

[Outline]

This command sets the numbering (serial number counter) mode.

 

 

 

n1 + n2 ´ 256 (n1 = remainder, n2 = quotient)

: Counter default

 

 

 

n3 + n4 ´ 256 (n3 = remainder, n4 = quotient)

: Counter final value

 

 

 

n5

 

 

 

 

: Counter step value

 

 

 

n6

 

 

 

 

: Identical counter print count

 

 

 

(n1 + n2 ´ 256) < (n3 + n4 ´ 256)

: Count-up system

 

 

 

(n1 + n2 ´ 256) > (n3 + n4 ´ 256)

: Count-down system

 

 

 

(n1 + n2 ´ 256) = (n3 + n4 ´ 256) or n5 = 0 or n6 = 0 : Counter stop

[Default]

n1 + n2 ´ 256 = 1

 

 

 

 

 

 

n3 + n4 ´ 256 = 65535

 

 

 

 

 

n5 = 1

 

 

 

 

 

 

 

n6 = 1

 

 

 

 

 

[See Also]

GS C0, GS C2, GS c,

GS C ;

 

[Sample Program]

 

 

 

 

 

 

 

LPRINT CHR$ (&H1D) ; "C0" ;

* CNT

 

 

 

LPRINT CHR$ (3) ; CHR$ (0) ;

 

FOR I=1 TO 6

 

 

LPRINT CHR$ (&H1D) ; "C1" ;

LPRINT CHR$ (&HID) ; "c" ;

 

 

LPRINT CHR$ (50) ; CHR$ (0) ;

NEXT I

 

 

LPRINT CHR$ (0) ; CHR$ (0) ;

 

LPRINT CHR$ (&HA) ;

 

 

LPRINT CHR$ (5) ; CHR$ (2) ;

 

RETURN

 

 

GOSUB * CNT

 

 

 

 

 

 

LPRINT CHR$ (&H1D) ; "C2" ;

 

 

 

 

LPRINT CHR$ (5) ; CHR$ (0) ;

 

 

 

 

 

GOSUB * CNT

 

 

 

 

 

 

END

 

 

 

 

 

[Print Result]

 

 

 

 

When setting a count-down range = 0 to 50, step

 

 

 

 

 

 

 

value = 5, repeat count = 2, and start value = 5 to

 

 

 

 

 

 

 

print a counter value.

When setting a count-down range = 0 to 50, step value = 5, repeat count = 1, and start value = 50 to print a counter value. (The repeat count is cleared)

85

CITIZEN

Image 85
Contents Citizen EMC LVDImportant Safety Instructions Lärmemission kleiner 70dBA Wichtige SicherheitsanweisungenSicherheitshinweis Citizen Safety Precautions Be Sure to Observe Citizen Precautions for Installation Precautions for Handling Daily Maintenance Contents Parallel Interface Maintenance and Service Print Control FunctionsAppendix GermanAppendix Wall Mounting Holes Layout Drawing DIP-SCHALTEREINSTELLUNGOutline FeaturesUnpacking Model Classifications Basic SpecificationsUL, C-UL Basic SpecificationsRecommended Paper Paper SpecificationsHead and Paper Cutter Layout Printing PositionOuter Appearance and Component Parts Citizen Operation Connecting AC AdapterConnecting Interface Cable Inserting the Paper How to Remove Remaining Paper Roll Eliminating the Paper Jam When Thermal Paper is Used Feed Switch FunctionWhen Label Paper is Used When the Macro is ExecutedOFF Paper Near End FunctionSelf-Print Function Auto-Loading FunctionError Details Operation Panel and Display of ErrorOFF BusyMitsubishi Paper Mills 12 Red/Black Print Precautions for UseLocation of DIP Switch DIP Switch SettingDIP Switch Function DS2 For Serial Interface OnlyUSA Jumper Wire FunctionConnectors Pin Configuration SpecificationsParallel Interface Input and Output Signals Input and Output SignalsElectrical Characteristics Data Receiving Control Timing ChartBuffering RXD Serial InterfaceDTR TXDInput and Output Signals Error Detection Data ConfigurationInput RXD, DSR Printer Side Host Side Power Connector Maintenance and Service Print Control Functions 10.1 Command List0AH 0DH ESC1DH 3AH 1DH 2AHDC2 DC3Descriptions of Each Item Command DetailsXxxx ESC D Command DetailsCitizen ESC SP Citizen ESC E, ESC ESCESC % A p s´a m-n+1 ESC * m N1 n2 d Print Results Dots single density Dots double density ESC n ESC = ESC D n k NUL ESC @ESC G ESC EESC !, ESC G ESC EESC J ESC R ESC ESC a ESC c ESC c Parallel Interface OnlyESC d ESC t ESC Serial Interface Only Lprint Aaaaa CHR$ &HA Lprint Bbbbb CHR$ &HA ESC ¥ ESC $ESC $ ESC ¥NUL GS k nUPC-A UPC-E JAN13 EAN JAN 8 EAN Code ITF Codabar NW-7 CODE39 JAN-8EANCODE128 Code Btestcode A123 TestDescription of Bar Codes GS h n GS wGS H GS H GS f nSee Also GS /, ESC N1´8 dots N2´8 dots Sample Program GS * n1 N2 d n1 ´ n2 ´GS / m Lprint CHR$ END GS n1 n2 n3 DC3 n DC2 aGS FF Only When Label Printer is SelectedGS FF, GS GS C0 Lprint CHR$ 0 CHR$ GS C N1 N2 N3 N4 N5 GS C2GS c GS a m Only When Label Printer is Selected International Domestic Character Codes TableInternational Character Codes Table Appendix 1. Block Diagram Appendix 2. Outline Drawing Appendix 3. Wall Mounting Holes Layout Drawing German Vorsicht ZU Beachtende Sicherheitsmassregeln Warnung Vorsichtsmassregeln FÜR DIE Aufstellung Vorsichtsmassregeln FÜR DIE Handhabung Vorsicht Tägliche WartungAnschließen des Netzteils BetriebAnschließen des Schnittstellenkabels Einsetzen des Papiers Entnehmen der eingesetzten Papierrolle Beseitigen von Papierstau Papierende-Funktion FEED-SchalterfunktionBei Verwendung von Thermalpapier Bei Verwendung von EtikettenpapierPapiermangel-Funktion Selbstdruckfunktion AutoladefunktionBedienfeld und Fehleranzeigen Fehler-Einzelheiten 12 Rot/Schwarz-Druck Vorsichtsmaßregeln Lage der DIP-Schalter DIP-SCHALTEREINSTELLUNGDIP-Schalterfunktion DS1Jumperdraht-Funktion Wartung UND Dienst