Epson 410 manual Appendix F Sample Basic Program, Disk Label Maker, Print Print Print

Page 92

Printer Commands

Chapter 5

))))))))))))))))))))))))))))))))))))))))))))

APPENDIX F: SAMPLE BASIC PROGRAM

This program produces labels for computer diskettes. It is intended to show the simplicity that higher languages communicate with the 410 printer. Communication parameters may need to be changed for some computers.

2 REM *******************************************

3 REM *

DISK LABEL MAKER

*

4 REM * Sample BASIC program demonstration LDS. *

5 REM *******************************************

10 OPEN "COM1:9600,N,8,1,RS" AS #1

 

15 CLS

 

 

 

20 PRINT: PRINT: PRINT

 

 

30 INPUT"Disk Title: ",DT$

 

 

32 DT$ = LEFT$(DT$,30)

:REM Limit title to 30 characters

35 DT = LEN(DT$)

 

 

40 INPUT"Date: ",D$

 

 

45 D = LEN(D$)

 

 

 

47 INPUT"format: ",F$

 

 

48 F = LEN(F$)

 

 

 

50 INPUT"Disk Number: ",DN$

 

 

60 INPUT"Total Disks In Series: ",TD$ 61 ND$ = DN$+" OF "TD$

62 ND = LEN(D$)

63 INPUT"Comment #1: ",C1$

64 C1$ = LEFT$(C1$,50) :REM Limit comment to 50 characters 68 C2 = LEN(C1$)

66 INPUT"Comment #2: ",C2$

67 C2$ = LEFT$(C2$,50) :REM Limit comment to 50 characters

68 C2 = LEN(C2$)

 

84 PRINT#1,"^A3^D97"

: REM Tag mode #3

85

PRINT#1,"^D57"

: REM format following

90

PRINT#1,"6,,,,,30,,70,2"

: REM label header

95

PRINT#1,"1,150,5,";D;",1,6"

: REM fields

100 PRINT#1,"2,530,5,";ND;",1,6"

110PRINT#1,"3,320,110,";DT;,1,13,,4"

115PRINT#1,"4,50,5,";F;",1,6

116PRINT#1,"5,80,75,";C1;",1,10"

117PRINT#1,"6,80,50,";C2;",1,10"

120 PRINT#1,"^D56^D2"

: REM select layout and

130 PRINT#1,D$

: REM send text data

140 PRINT#1,ND$

 

150 PRINT#1,DT$

 

155 PRINT#1,F$

 

156 PRINT#1,F$

 

157 PRINT#1,C2$

 

160 PRINT#1,"^D3"

: REM print label

170 PRINT: PRINT: PRINT: INPUT"Another (Y/N)? ",YN$

180 IF (YN$ = "Y") OR (YN$ = "y") THEN 15

))))))))))))))))))))))))))))))))))))))))))))

86

410 Operators Manual

Image 92
Contents Microcom Corporation Operators Manual Table of Contents Table of Contents Table of Contents List of Tables Introduction Operators Manual Features and Specifications BAR Codes Physical RAMPrinter Variations Front View Operators Manual Normal Mode Batch ModeStatus Label Mode Basic OperationPAPER-OUT Mode Serial Parameters 9600-N-8-1Light Mode Meaning Color Status LightLoading Paper Normal and TAG/TEAR ModesPEEL-AND-DISPENSE Mode Clearing Label Misfeeds Diaphragm RemovalCleaning Instructions Communications Cable PinoutPrinter Cables Designing Labels Using LDS PC Connection SerialCcopy Filename LPT1 Ccopy Filename COM1PC Connection Parallel Learning LDS EasycrMicrocom Makes Itcr HellocrDesigning Labels Using LDS Chapter Label Header HFM Number of Fields in Layout LSX Label Size X DirectionLSY Label Size Y Direction WEB WEB SizeDPS MM/SEC Inches PER Second Minute LCB Label Control ByteAGD Number of Steps to Activate GAP Detector Sample Session with a Label Header 615,153,,20,30,,70,4CRLabel Fields TSN Text String NumberXB X Beginning Coordinate YB Y Beginning CoordinateCC Character Count TCI Text Conversion IdentifierOCR-A CGN Character Generator NumberCGN UPC/EAN Right Justified Left JustifiedCentered Above BaselineCMX Character Multiplier X Direction CMY Character Multiplier Y DirectionCLY Character Cell Length Y Direction TSP Text Starting PositionCLX Character Cell Length X Direction Sample Session with a Label Field 100, 40, 4, 1,4CRPrinter Commands Special Printer Control CodesPrinter Enquiries Sending D Printer Commands Software DIP Switches and Eeprom Commands CommandABxxxxxxxx PositionABxxxxxxxx Position Always ABxxxxxxxx Clear commands Printing CommandsCommand AUTO-SIZING and Valid GAP Commands LSYGAP AGDCommand Auto-Size Label REAL-TIME Clock D30 CR Hhmmss CR DD/MN/YR/W CR= SUN = MONClock Optioncr European Date FormatcrUS Date Formatcr Serial Number Commands Disable increment and decrementSingle Serial Number Status D85Command Label Header Commands Load label control byte LCB a specifies the numberUsage Saving Format Files CommandsSend Saved Format File to Serial Port a selects which one File #2 File #1ESC File #3 Label Presence Sensor Control Command Text Strings Commands Command Clears commandShip Fromcr Miscellaneous Printer Commands Disable All Enable 450 EmulationEnable 1 Enable 460 EmulationLogos Required for the Logo OptionProcedure for Using the PCX2410 Software Chapter Printer Commands Format of Logo Files Opening ParametersChapter Printer Commands Human Readables Designing with BAR CodesRotationscr Degreescr Chapter Printer Commands UPC-A HR W/CHKSUMCR UPC-A HR W/O Chksumcr 01234567890CR Half Lines Making LinesThick Lines Qtycr Reverse VideoLOT Numbercr CLOCK/BATTERY Backed RAM Socket Label Support RackLarge Paper Roll Supply Holder PCX2410 SoftwareParallel Conversion Boards Cleaning KITWysiwyg Software Packages Appendix a Warranty and Repair Procedures Limited WarrantyReturn Material Authorization RMA Procedure Appendix B Cleaning KIT & Accessories Appendix C Configuration Guide Battery Backed RAM with REAL-TIME ClockAddition Format Area Graphic ImagesAppendix D Installing the Label Support Rack Default POWER-UP Label Appendix E More Label SamplesFonts UPC-A HR W/CHKSUMCR UPC-A HR W/O Chksumcr 01234567890CR Multipliercr XY Multipliercr 1XYCR 2XYCR 4XYCR 8XYCR D3CR Linescr Offset of 0CR D3CR Offset of 100CR D3CR D57CR 620,441,,10,25,,,352CR 100,100,13,1,13CR D56CR D2CR Aiag Label Wheelcr Aacr Print Print Print Appendix F Sample Basic ProgramDisk Label Maker Close System Appendix G Quick Reference Command Summary Not Used Printer Statistics Column Epson emulation 2 inchPage Auto-Size Label Section Text Mode Control Section Emulation ControlClears Commands 86, 88 Advance when idle Peel-and-Dispense Mode SectionTurn off peel-and-dispense mode Turn on peel-and dispense modeIndex Chapter Printer Commands Printer Commands Chapter Operators Manual