Owner manual
KEYENCE CORPORATION. Vision System Division
‐ 17 ‐ www.keyence.com
✎Command Execution Procedure Example: Rewrite Judgment Conditions (DW)
Here is an example of a representative command execution procedure. This section explains an example of executing the DW
(Rewrite Judgment Conditions) command, which specifies numeric values as command parameters, with Command Execute
Event set to "Polling". The screens with blue frames show when the "Watch" function of MPE720 is used for confirmation.
1
Check the DW (Rewrite Judgment Conditions) command operation.
1. Enter the following information in the data memory
corresponding to the PLC Command Address.Below is an
example of rewriting the upper limit of the area of "T101" to
"12345".
MW100: "45", the DW command No.
ML102: 101 (Tool ID: 101)
ML104: 105 (judgment condition item ID for "Area")
→For informaon about the judgment condion item ID,
refer to the user's manual.
ML106: 0 ("0" represents the upper limit)
ML108: 12345000 (value)
→If "Decimal Point" is set to "Fixed- point", specify the
value multiplied by 1000 (12345000).
→ If "Decimal Point" is set to "Floating- point", specify a
single precision floating point number (12345.000).
* The address to use is 1 word for Command No. and 2
words for other parameters.
2. Enter 1 in the data memory corresponding to the PLC
Command Execution Address (bit) (MW002 in this example).
* The address to use is 1 word.
3. The command is executed.
4. Check if the values of the data memory corresponding to
the PLC Command Complete Address (bit) and Command
Result Address (MW003 and MW200 respectively in this
example) have changed.
When the command is successful: CV‐X writes "1" into Command
Complete Address (bit), and "0" into Command Result Address.
When the command fails: CV‐X writes "1" into Command Complete
Address (bit), and an error code into Command Result Address.
[Registering watch variables]
Double‐click the variable column to enter variables. To display in 2 words,
specify ML + memory number.
To display in 1 word, specify MW + memory number.
[Specifying the display method]
Right‐click a variable to specify the display method.
To display decimally, select "Decimal".