OCR
478
FH/FZ5 Processing Item Function Reference Manual
Refer to the “External Reference Tables” for the parameters that can be referenced, including measurement
results.
(Reference: External Reference Table (OCR) (p.482))
Output of Character String in PLC Link
In PLC Link communication, check the [Character output] to output the character string and NULL(0x00)
+delimiter (NULL (0x00)) are output to the data output area of PLC Link.
Reference: Output Parameters (
O
CR) (p.474)
1 Output Format
Take the following case as an example.
Number of measurement is one. Reading character stri
ng is 32. Command: Read character strings
0123456789... UV, Response, and Data Output area are as follows.
Reference: Communicating with PLC Link, Command Details for
PLC L
ink, EtherNet/IP, and EtherCAT
in Vision System FH/FZ5 Series User’s Manual for Communications Settings (Z342).
Command (PLC to Sensor Controller)
Response (Sensor Controller to PLC)
Data Output Area (Sensor Controller to PLC)
When output the 32 character strings (0123456789…UV), the result continues as follows.
ASCII code data + NULL (0x00) +delimiter (NULL (0x00)).
Measurement item
Character
string
Description
Judge JG The judgement result of the processing unit
Chara. Num(Line No.1) NUM0 Number of characters on the 1st line
Chara. Num(Line No.2) NUM1 Number of characters on the 2nd line
Chara. Num(Line No.3) NUM2 Number of characters on the 3rd line
Chara. Num(Line No.4) NUM3 Number of characters on the 4th line
NG Cause(Line No.1) LNG0 1st line NG cause
NG Cause(Line No.2) LNG1 2nd line NG cause
NG Cause(Line No.3) LNG2 3rd line NG cause
NG Cause(Line No.4) LNG3 4th line NG cause
Top channel
Description
+3 +2
0010 1010 Performs one measurement.
Response Area
Description
Top channel Data
+2 1010
Command Code
Target response is responded.
+3 0010
+4 0000
Response code
Command execution result.
+5 0000
Top channel Name Description
+0
1st character,
2nd character
3031 (ASCII code of the character 2 ASC
II code of the character 1)