Owner's manual
‐ 10 ‐ 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‐
- Res
ult Output Address: Specify the first data memory for the
result data output by CV
‐X.
* The r
esult data is stored starting from this address by 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 the 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 stored using 2 words
… Decimal type data: Multiplied by 1,000 and stored using 2 words
284.868 284868
XY data: X is output and then Y, stored using 2 words
… Integer type data: Stored using 2 words as is
Character data: 1 character stored 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 consists of 7 characters "KEYENCE", 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 stored using 2 words
System variable: Integer type: Stored using 2 words as is Decimal type:
Multiplied by 1,000 and stored 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 "Registration monitor" function screen in KV STUDIO.
…Program Time (67.477 ms)
…Total Count (24)
…T101: Area Judged Value (OK = 0/NG = 1)