Example of cam switch function – KEYENCE KV-D20 User Manual

Page 62

Advertising
background image

3. Examples of Ladder Programs

3

62

Assign CTC0 to the device displayed on the third line (specify "#22000" in DM1582).
Set the attributes so that the decimal point position is "2" ($0002), the number of
spaces at the right end is "2" ($0020), and a sign is used (Bit 9: ON) (DM1682 =
$0222).
Assign CTC1 to the device displayed on the fourth line (specify "#22001" in DM1583).
Set the attributes so that the decimal point position is "2" ($0002), the number of
spaces at the right end is "2" ($0020), and a sign is used (Bit 9: ON) (DM1683 =
$0222).

Comment

Example of cam switch function

Operate the KV-D20 to use the cam switch function of the KV basic unit. Set the
range of the cam switch output (output 0500 through 0508) in the numeric value
change mode of the operator screen.

Refer to "Changing numeric values individually" on page 49.

The customized switches are assigned to the following functions:

F1: Starts the cam switch operation and updates settings.
F2: Stops the cam switch operation.
F3: Not used
F4: Not used

The customized lamps are assigned to the following functions:

LED1: Indicates cam switch error.
LED2: Illuminates during cam switch operation.
LED3: Illuminates during cam switch output 0.
LED4: Illuminates during cam switch output 1.

Refer to the NEW KV Series User's Manual "Cam Switch Function" on page 627 for details.

Operator screen

Page 1

Page 2

Page 3

Page 5

Page 4

F1

F2

F3

F4

1

2

3

4

INDEX TABLE NO1

CURRENT ANGLE:

118.0

°

OUTPUT0

FROM: 0030.0

°

TO: 0071.0

°

OUTPUT1

FROM: 0050.0

°

TO: 0080.0

°

OUTPUT2

FROM: 0053.0

°

TO:0072.0

°

OUTPUT3

FROM: 0015.0

°

TO: 0100.0

°

OUTPUT4

FROM: 0047.0

°

TO: 0090.0

°

OUTPUT5

FROM: 0120.0

°

TO: 0170.0

°

OUTPUT6

FROM: 0250.0

°

TO: 0314.0

°

OUTPUT7

FROM: 0270.0

°

TO: 0333.0

°

OUTPUT8

FROM: 0190.0

°

TO: 0345.0

°

Relay

Data memory

2500

2501

2502

2503

2504

2505

2506

15000

15001

DM1900

DM1916

DM1918

Device

No.

Comment 1

C T H 0

O N / O F F

C T C 0

S E T

C T C 1

S E T

C T H 0

R E S E T

C T H 0

O P E R A T I N G

C T C 0

O N

C T C 1

O N

~

* * H I G H - S P E E D C O U N T E R : O N * *

C U R R E N T : mm

P R E S E T 0 : mm

P R E S E T 1 : mm

kv_d20_manual.p65

08.3.10, 6:09 PM

62

Advertising