CAB A+ Series Programming Manual page 418

Hide thumbs Also See for A+ Series:
Table of Contents

Advertisement

a-Series basic compiler
418
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.
Example:
cab Produkttechnik GmbH & Co KG
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
418
418

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mach 4PxXd4

Table of Contents