KEYENCE CV-X Series User Manual

Page 12

Advertising
background image

KEYENCE CORPORATION. Vision System Division

‐ 12 ‐

www.keyence.com

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 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 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. PLC cannot detect

the update timing of the result data, but the tact is fast. Use this
option when you wish to know 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 (216.235)

···

T100: Pattern Search. Pattern XY Position Result

···

T101: Area. Area Result (12675)

···

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

···

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 output to PLC as follows (When "Fixed‐ point" is selected for "Decimal Point" on CV‐X)
* The following is the screen as viewed when "PLCメモリ" → "D" is selected, and the memory area monitor display is used in
CX Programmer.

···

Program Time (56555 ms)

···

Total Count (16)

···

T101: Area Judged Value (OK = 0/NG = 1)

(X = 216.235/Y = 112.675)

216.235  216235

Advertising