OCRFH/FZ5 Processing Item Function Reference Manual
479
2
Inspecting and Measuring
2 How to get the character string
Perform the Data Output Request (DSA) and Data Output Completion (GATE) as in the case of Data
Output.
All character string is included one data. Thereby, Data
Outpu
t Request (DSA) is performed once if there
is only one OCR unit.
Output of Character string with Non-procedure Communications
Check the [Character output] in Output parameter to output the character string and NULL (0x00) with Non-
procedure communication.
Reference: Output Parameters (
O
CR) (p.474)
1 Output Format
Take the following case as an example. Number of measurement is one.
Reading character string is 32. Read character stri
ngs 0123456789…UV, Command, Response, and
Data Output area are as follows.
Reference: Non-procedure Communications and MEASURE
or M in Non-procedure Command Details
in
Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342).
Command (PLC to Sensor Controller)
+1
3rd character,
4th character
3233 (ASCII code of the character 2 ASC
II code of the character 3)
.
.
.
+15ch
31st character,
32th character
5556 (ASCII code of the character U ASCII code of the character V)
+16ch NULL, NULL 0x0000 (NULL, NULL)
• If no character string, outputs NULL(0x00) + Delimiter NULL(0x00).
When check the [Error character
o
utput], output the error character string + NULL(0x00).
• When the character string is 2 bytes, i.e. Shift-JIS. the maximum number of character strin
g is 16.
Outputs one character per one channel.
• When output the multiple lines, NULL(0x00) is inserted between the lines and at the end of the last line.
When the following case, output result is "ABC0x001230x000x00".
• 1st line is "ABC"
• 2nd line is "123"
• Cannot skip the blank lines. Lines after the blank line is not output.
• When the following case, output result is "ABC0x000x00".
• 1st characters are "ABC"
• 2nd characters are "DEF"
• 3rd characters are "123"
• 4th characters are "456" and 2nd line cannot be read.
Top channel Name Description
MUAES E
RM
or
C
R
C
R