beautypg.com

Command execution procedure example – KEYENCE CV-X Series User Manual

Page 12

background image

KEYENCE CORPORATION. Vision System Division

‐ 12 ‐

www.keyence.com

3. The command is executed.

4. Check if the values of the devices corresponding to

the PLC Command complete flag and Command

result (B00 and W04 respectively in this example)

have changed.

When the command is successful: CV‐X writes "1" into Command complete
flag, and "0" into Command result.

When the command fails: CV‐X writes "1" into Command complete flag, and
an error code into Command result.

Command Execution Procedure Example

Switch Program Setting No. (PW)

Here is an example of a command execution procedure. This section shows an example of executing the PW (Switch Program

Setting No.) command which uses command parameters. The screens with

blue frames

show when the "Registration monitor"

function of KV STUDIO is used for confirmation.

Check the PW (Switch Program Setting No.) command operation.

1. Enter "24", the PW command No., in the device

corresponding to the PLC Command number (W0F4 in

this example), and enter the switch target SD drive No.

and program number in the device corresponding to

Command Parameter (W0F6 and W0F8 in this

example).

The figure on the right shows an example of switching

to program number "11" on "SD1".

2. Enter "1" in the device corresponding to the PLC

Command request flag (B060 in this example).