KEYENCE CV-X Series User Manual
Page 7
‐ 7 ‐
www.keyence.com
KEYENCE CORPORATION. Vision System Division
✎
Checking the Output Format/Flow for the Data Memory
1
Check the data memory and word count to use for the result output.
Use "Result Output Address", "Result Ready Address" and "Result Ack Address" in [Global] > [Communications & I/O] > [PLC‐
Link].
- Result Output Address: Specify the first data memory for the result
data output by CV‐X.
* The result data is stored starting from this address at 2 words per
data item (2 words per character).
- Result Ready Address (bit): Specify the data memory for CV‐X to
notify when the result data has been written.
* The address to use is 1 word.
- Result Ack Address (bit): Specify the data memory for PLC to notify
when the result data has been read.
* The address to use is 1 word.
- Acknowledge result output completion: Uncheck the checkbox to
restrict the Result Ready Address (bit) control. The PLC cannot detect
the update timing of the result data, but the tact is fast. Use this
option when you wish to acquire the latest result only.
2
Check the example of outputting the result data to the data memory.
···
Total Status Value (OK = 0/NG = 1)
···
T100: Pattern Search. Pattern X Position Result (284.868)
···
T100: Pattern Search. Pattern XY Position Result
···
T101: Area. Area Result (17839)
···
T102: OCR. Recognized Character (String) ("KEYENCE")
···
T100: Pattern Search Judged Value (OK = 0/NG = 1)
The CV‐X outputs the result data as follows:
[Data item] In parenthesis: Displayed measured value
···
Judged value: OK = 0/NG = 1 output using 2 words
···
Decimal type data: Multiplied by 1,000 and output using 2 words
XY data: X is output and then Y, stored using 2 words respectively
···
Integer type data: Output as is using 2 words
Character data: 1 character output in ASCII code using 2 words
* When "String" is output, the DM use amount varies depending
on the specified character count. In the left example, "Detected
String" of the OCR tool is output. The string, "KEYENCE", consists of
7 characters, but as [Block Set] > [Characters] of the OCR tool is
"10", 20 words (10 characters) of DM510 to 529 are used.
Changing the character count setting also changes the data
memory to use. If it may be changed, it is recommended that you
set it up at the end of the output settings.
Judged value: OK = 0/NG = 1 output using 2 words
System variable: Integer type: Output as is using 2 words Decimal
type: Multiplied by 1,000 and output using 2 words
···
Data output completion address (1 at data output completion)
Data is stored in the PLC as follows (When "Fixed‐ point" is selected for "Decimal Point" on CV‐X)
* The following screen is the "Device Registration monitor" function screen in GX Developer.
···
Program Time (67.477 ms)
···
Total Count (24)
···
T101: Area Judged Value (OK = 0/NG = 1)
284.868 284868
(X = 284.868/Y = 196.223)