17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SETUP, <strong>cont'd</strong>.<br />

Chapter 2 Program Instructions<br />

Examples, <strong>cont'd</strong>. In this example, the current setup is saved in the printer's temporary memory<br />

under the name "SETUP1.SYS". Then the start adjustment is changed to<br />

“200” by the creation of a new setup file named "SETUP2.SYS" . The setup<br />

file is finally used to change the printer's setup.<br />

10 SETUP WRITE "tmp:SETUP1.SYS"<br />

20 OPEN "tmp:SETUP2.SYS" FOR OUTPUT AS #1<br />

30 PRINT#1,"FEEDADJ,STARTADJ,200"<br />

40 CLOSE<br />

50 SETUP "tmp:SETUP2.SYS"<br />

This example shows how a new file is OPENed for output and each parameter<br />

in the setup is changed by means of PRINT# statements. Then the file is<br />

CLOSEd. Any lines, except the first and the last line in the example, may be<br />

omitted. Finally, the printer's setup is changed using this file.<br />

10 OPEN "tmp:SETUP.SYS" FOR OUTPUT AS #1<br />

20 PRINT#1,"SER-COM,UART1,BAUDRATE,19200"<br />

30 PRINT#1,"SER-COM,UART1,CHAR LENGTH,7"<br />

40 PRINT#1,"SER-COM,UART1,PARITY,EVEN"<br />

50 PRINT#1,"SER-COM,UART1,STOPBITS,2"<br />

60 PRINT#1,"SER-COM,UART1,FLOWCONTROL,RTS/CTS,ENABLE"<br />

70 PRINT#1,"SER-COM,UART1,FLOWCONTROL,ENQ/ACK,ENABLE"<br />

80 PRINT#1,"SER-COM,UART1,FLOWCONTROL,XON/XOFF,DATA FROM HOST,ENABLE"<br />

90 PRINT#1,"SER-COM,UART1,FLOWCONTROL,XON/XOFF,DATA TO HOST,ENABLE"<br />

100 PRINT#1,"SER-COM,UART1,NEW LINE,CR"<br />

110 PRINT#1,"SER-COM,UART1,REC BUF,800"<br />

120 PRINT#1,"SER-COM,UART1,TRANS BUF,800"<br />

130 PRINT#1,"FEEDADJ,STARTADJ,-135"<br />

140 PRINT#1,"FEEDADJ,STOPADJ,-36"<br />

150 PRINT#1,"MEDIA,MEDIA SIZE,XSTART,50"<br />

160 PRINT#1,"MEDIA,MEDIA SIZE,WIDTH,1000"<br />

170 PRINT#1,"MEDIA,MEDIA SIZE,LENGTH,2000"<br />

180 PRINT#1,"MEDIA,MEDIA TYPE,LABEL (w GAPS)"<br />

190 PRINT#1,"MEDIA,PAPER TYPE,TRANSFER"<br />

200 PRINT#1,"MEDIA,PAPER TYPE,TRANSFER,RIBBON CONSTANT,110"<br />

210 PRINT#1,"MEDIA,PAPER TYPE,TRANSFER,RIBBON FACTOR,25"<br />

220 PRINT#1,"MEDIA,PAPER TYPE,TRANSFER,LABEL OFFSET,00"<br />

230 PRINT#1,"MEDIA,CONTRAST,-4%"<br />

240 PRINT#1,"PRINT DEFS,PRINT SPEED,300"<br />

250 CLOSE<br />

260 SETUP "tmp:SETUP.SYS"<br />

This example shows how a setup parameter is changed in the Immediate<br />

Mode or the <strong>Intermec</strong> Direct Protocol, using a setup string.<br />

SETUP"MEDIA,MEDIA TYPE,VAR LENGTH STRIP" ↵<br />

This method can also be used in the Programming Mode, e.g.:<br />

10 SETUP"MEDIA,MEDIA TYPE,VAR LENGTH STRIP"<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!