408
408
408
cab Produkttechnik GmbH & Co KG
Notes:
- Some streams like „/dev/panel“ are always Unicode-streams. Using ‘b’ or ‘u’ modifiers can have
strange effects!
- Writing to an interface (e.g. /dev/rs232) will fail if the printer cannot send the data. There’s a time
out of 10 seconds.
- Opening an interface as file stops ESC interpretation on this device.
- abc has an additional command called FLUSH which enables you to clear the input buffer of
/dev-streams in read mode (e.g. FLUSH #1 when 1 ist /dev/rawip). FLUSH #0 clears standard input.
- abc has an additional command to erase files: ERASE „name“.
Communication with Web Browsers:
cab printers have a web server which is usually used for administration, but can also be used to
access data like images or HTML pages from the card. So it is only logical to seek a way to transmit
data from the browser
to
the printer. This is normally done by CGI scripts using forms. We do it the
same way :-) You can however not define CGI scripts your own, but we provide a way to get form
data into your abc program:
HTML
You simply define a form in your HTML page which uses get_form.cgi as ACTION.
<form action=“/get_form.cgi“ method=“post“>
<input type=“hidden“ name=“nextpage“ value=“thanks.htm“>
<input type=“text“ name=“example“>
<input type=“submit“ value=“Send data“>
</form>
This form lets the user enter some data in a text field called „example“. After clicking the „Send data“
button, the form content is sent from the browser to the web server and parsed there. Then the
extracted data is put into the input buffer which can be read by abc or directly by JScript. There
are two special field names available:
-
nextpage
this defines the name of the html page which is loaded after sending the form.
Default is index.htm.
-
jscript
Can be used to send a JScript command before the data. So you can e.g. send
a „M l lbl“ command before the data of the form.
A more complex example showing most of the possibilities of the CGI interface is the „cinema ticket“
program. This is available on request. In this case you can contact „support@cabgmbh.com“
a-Series
b
asic compiler
Summary of Contents for A+
Page 423: ...423 423 423 cab Produkttechnik GmbH Co KG Code 39 pattern chart ...
Page 424: ...424 424 424 cab Produkttechnik GmbH Co KG Code 39 Full ASCII chart ...
Page 435: ...435 435 435 cab Produkttechnik GmbH Co KG Character list Swiss 721 Appendix C ...
Page 436: ...436 436 436 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 437: ...437 437 437 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 438: ...438 438 438 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 439: ...439 439 439 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 440: ...440 440 440 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 441: ...441 441 441 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 442: ...442 442 442 cab Produkttechnik GmbH Co KG Character list Swiss 721 Appendix C ...
Page 443: ...443 443 443 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 444: ...444 444 444 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 445: ...445 445 445 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 446: ...446 446 446 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 447: ...447 447 447 cab Produkttechnik GmbH Co KG Appendix C Character list Swiss 721 ...
Page 448: ...448 448 448 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 449: ...449 449 449 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 450: ...450 450 450 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 451: ...451 451 451 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 452: ...452 452 452 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 453: ...453 453 453 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 454: ...454 454 454 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 455: ...455 455 455 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 456: ...456 456 456 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 457: ...457 457 457 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 458: ...458 458 458 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 459: ...459 459 459 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 460: ...460 460 460 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 461: ...461 461 461 cab Produkttechnik GmbH Co KG Character list Swiss 721 bold Appendix C ...
Page 462: ...462 462 462 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 463: ...463 463 463 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 464: ...464 464 464 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 465: ...465 465 465 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 466: ...466 466 466 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 467: ...467 467 467 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 468: ...468 468 468 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 469: ...469 469 469 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 470: ...470 470 470 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 471: ...471 471 471 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...
Page 472: ...472 472 472 cab Produkttechnik GmbH Co KG Character list Monospace Appendix C ...