beautypg.com

KEYENCE Visual KV Series User Manual

Page 117

background image

2.4 Instruction Details

1

2

3-93

Chapter 2 Instructions

(8)

2

3

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

(4)

2

2

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

(2)

2

1

0

0

1

1

0

0

1

1

0

0

1

1

0

0

1

1

(1)

2

0

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

0 0 0 0

3 2 1 0

0

0 0 1 0

3 2 1 0

2

0 1 1 0

3 2 1 0

6

1 0 0 1

3 2 1 0

9

SW4

SW3

SW2

SW1

MEMSW

$0269

Retains all errors when power is ON.
Retains utility relays 3000 through 3999.

(Switch No.)

(Example)

Hexadecimal
number

Clears DM0000 to DM0999
when power is ON.

Retains Internal utility relay
5000 through 5999 and 6000
through 6999.

MEMSW

Note 1:

When a read-protected program is transferred into the KV PLC it cannot

be read or modified from this PLC. Before read-protecting a program, be sure to
create a backup copy of the program.

Note 2:

When a 24-bit high-speed counter comparator is used, the ladder program

which specifies the numerical values of a 24-bit CTC is required before starting the
high-speed counter.

Note 3: The value of MEMSW can be changed even during operation. However,
the new operation is not actually performed. The change is effective only after the
KV is turned off or stopped once and then restarted.

Details of MEMSW

Setting memory switches
Specify a hexadecimal number for each switch No.

Tips

The data entered for the memory switch is set into the KV PLC when the pro-
gram is transferred to the KV PLC.

When MEMSW instruction is not entered into the program, "$0000" is set.

If you try transfer a program into the KV PLC which is write-disabled, warning
message "WRITE PROTECTED REPLACE OK?" is displayed. When executing
the transfer regardless of the message, press .

Description

Hexadeci-
mal number

To use internal utility
relays 1000 through
1915 as latch relays.

To clear a counter when
operation is started.

To use a 24-bit

high-

speed counter

CTH1.

To clear a DM when
operation is started.

To read-protect a
program.

To use a 24-bit

high-

speed counter

CTH0.

MEMSW

$0004

MEMSW

$0E00

MEMSW

$8000

MEMSW

$2000

MEMSW

$0800

MEMSW

$1000

ENT

R-SRCH

KVNKA Chap 02_4aP.p65

08.3.11, 11:58 AM

93