Owner manual

KEYENCE CORPORATION. Vision System Division
16 www.keyence.com
Command Execution Procedure Example: Switch Program Setting No. (PW)
Here is an example of a representative command execution procedure. This section explains an example of executing the PW
(Switch Program Setting No.) command, which uses a command parameter, 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 PW (Switch Program Setting No.) command operation.
1. Enter the following information in the data memory
corresponding to the PLC Command Address.
MW100: "24", the PW command No.
ML102: The switch target SD drive No.
ML104: The program No.
The figure on the right shows an example of switching to
program number "23" on "SD1".
* 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: CVX writes "1" into Command
Complete Address (bit), and "0" into Command Result Address.
When the command fails: CVX writes "1" into Command Complete
Address (bit), and an error code into Command Result Address.
[Registering watch variables]
Doubleclick 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]
Rightclick a variable to specify the display method.
To display decimally, select "Decimal".