Specifications
Chapter 14. Statement Reference
274
Code 39 (
M)
Syntax:
M[:[mini.no.digits[-max.no.digits]][CD][;[1stchara[2ndchara]]]
[,[mini.no.digits[-max.no.digits]][CD][;[1stchara[2ndchara]]]]
[,[mini.no.digits[-max.no.digits]][CD][;[1stchara[2ndchara]]]]]
where
mini.no.digits and max.no.digits are the minimum and maximum
numbers of digits for bar codes to be read by the BHT, respectively.
They should be a numeral from 1 to 99, excluding start/stop characters. They
should satisfy the following condition:
mini.no.digits ≤ max.no.digits
If both of mini.no.digits and max.no.digits are omitted, the
default reading range is 1 to 99 digits. If only max.no.digits is omitted,
the BHT can only read the number of digits specified by
mini.no.digits.
CD is a check digit. Specifying a C to CD makes the Interpreter check bar
codes with MOD-43. The check digit is included in the number of digits.
OPEN "BAR:" AS #1 CODE "M:8-12C"
To specify multi-line code scanning, the above syntax should be preceded by
an ampersand (&) and should be repeated by the number of lines of codes to
be scanned. In the above syntax, the semicolon (;) and the following take
effect only in multi-line code scanning. 1stchara or 2ndchara is a
numeral from 0 to 9 specifying the first or second character of a bar code to be
scanned. (For detailed specifications of multi-line code scanning, refer to the
Multi-line code scanning
given on page 277.)
Example: To scan 2 lines of Code 39 codes, write as follows:
OPEN "BAR:" AS #1 CODE "&","M:;12","M:;23"
or
OPEN "BAR:" AS #1 CODE "&","M:;12,;23"