Memsw:memory switch – KEYENCE Visual KV Series User Manual

Page 116

Advertising
background image

2.4 Instruction Details

3-92

2

Chapter 2 Instructions

FUN

ANL

2

ORB

6

Operand

ENT

R-SRCH

ENT

R-SRCH

Key operation

Operands

$0000 to $FFFF

Example

Coding

Specify 3 of SW3 and 0 and 1 of SW4 to reset the values of DM1900 to DM1999, counter,
up-down counter, CTH, and CTC when the operation is started.

Description

Switch Nos. and functions are as follows. The switch consists of 16 bits. The func-
tion of the switch is specified by turning a certain bit ON or OFF.

MEMSW:
Memory Switch

Sets memory switches.

FUN

MEMSW

$nnnn

ANL

2

ORB

6

0 0 1 1

3 2 1 0

1 0 0 0

3 2 1 0

0 0 0 0

3 2 1 0

0 0 0 0

3 2 1 0

SW4

SW3

SW2

SW1

MEMSW

$3800

SW1

SW2

SW3

SW4

Cancels error and
starts operation.

Loads memory
from EEPROM

Does not load
memory from
EEPROM

Uses latch
function.

Doesn't use
latch function.

Uses latch
function.

Uses latch
function.

Uses latch
function.

Uses latch
function.

Doesn't use
latch function.

Doesn't use
latch function.

Doesn't use
latch function.

Doesn't use
latch function.

Clears DM.

24-bit

16-bit

Retains DM.

:

MEMSW

MEMSW

$3800

Line No.

Instruction

Operand

0000

MEMSW

$3800

Write-protects
program.

Doesn't write-
protect program.

Clears values.

Retains values.

24-bit

16-bit

Read-protects
program.

Doesn't read-
protect program.

Switch

No.

OFF

Function of switch

ON

Retains error.

0

Cancels error when power is ON.

1

Action when "Memory error" occurs at
startup (due to data memory, counter
value, or retained content being erased).

2

Uses latch function of internal utility relays
1000 through 1915.

3

Uses latch function of internal utility relays
3000 through 3915.

0

Uses latch function of internal utility relays
4000 through 4915.

1

Uses latch function of internal utility relays
5000 through 5915.

2

Uses latch function of internal utility relays
6000 through 6915.

3

Not used.

0

Not used.

1

Clears DM0000 to DM0999 at power-on.

2

Clears DM1000 to DM1899 at power-on.

3

Switches between 24- and 16-bit compara-
tors for CTH0.

0

Switches between 24- and 16-bit compara-
tors for CTH1.

1

Clears values of counter, CTH, and CTC.

2

Write-protects program in KV PLC.

3

Read-protects program in KV PLC.

Clears DM.

Retains DM.

KVNKA Chap 02_4aP.p65

08.3.11, 11:58 AM

92

Advertising