EasyManua.ls Logo

CAB A+ Series - Page 418

CAB A+ Series
484 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
418
418
418cab Produkttechnik GmbH & Co KG
Simple program to show the capture of interface data, parsing it, extracting the data and
sending it forward to the JScript interpreter:
Here we convert data which drives another printer model into data which will be understood by a cab
printer. The incoming data is shown on the next page. The program runs in a loop, always ready to
receive new data.
The label is prepared first in JScript, then incoming data is analysed and finally we replace the field
contents with the extracted data.
J
S l1;0,0,68,71,104
T:t1;20,10,0,3,8;
T:t2;20,20,0,3,8;
T:t3;40,40,0,3,8;
<ABC>
label start
line input a$
if left$(a$,15)=“194300301480070" then
print „R t2;“,mid$(a$,16)
endif
if left$(a$,15)=“194300300580172" then
print „R t3;“,mid$(a$,16)
endif
if left$(a$,15)=“194300301970073" then
print „R t1;“,mid$(a$,16)
endif
if a$=“Q0001" then
print „A 1“
endif
goto start
</ABC>
Please see also further information on the next pages
a-Series basic compiler
Example:

Table of Contents

Related product manuals