Output Format
MS-860 Industrial Raster Reader User’s Manual
13-7
Insertion by Serial Command
Output #
Length
Hex String
Output Format Examples by Serial Command
A symbol with the data
ABCDEFGH
needs to be manipulated to output:
DEFGH@$ABCend
.
The following commands are sent to achieve this setup:
<K740,1,4,5>
for extraction mode, output# =1, start position = 4, length = 5.
<K741,2,2,4024>
for insertion mode, output# = 2, length = 2, hex string = 4024.
Note that the hex pairs 40 and 24 = @$ in ASCII.
<K740,3,1,3>
for extraction mode, output# = 3, start position = 1, length = 3.
<K741,4,3,656e64>
for insertion mode, output # = 4, length = 3, hex string =
656e64
Note that 656e64 = “end”.
<K741,0>
This ends the sequence and could have been done with a 740 command, as
well.
Definition:
An
Output # identifies the step involved in an output format process. For
example, if the
Output Format routine involved a series of four Extrac-
tion and/or Insertion steps, each of these steps is controlled by assign-
ing sequential output numbers from 1 to 4.
Serial Cmd:
<
K741,output #
,length,hex string>
Default:
(none) Must be entered.
Options:
1 to 100
Definition:
Specifies the length of the output string.
Serial Cmd:
<
K741,
output #,
length
,hex string>
Default:
0
(A zero disables
Length or can mark the end of a format cell array.)
Options:
0 to 4 (0 is disabled)
Definition:
A pair of hex digits represent an ASCII character. Each pair of hex digits
ranges from 00 to FF. Each hex string has a maximum of 4 pairs.
For example, hex 65 = ‘e’, 6e = ‘n’, 64 = ‘d’, thus 656e64 = “end”
Serial Cmd:
<
K741,
output #,length,
hex string
>
Default:
00
Options:
00 to FF
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com