beautypg.com

Appendix f sample program list, F-1 description of sample ladder programs – KEYENCE KV Series User Manual

Page 202

background image

Appendices

2-178

Appendices

Appendix F

Sample Program List

This appendix describes sample ladder programs installed by default. Sample
programs are saved in "\LBK\SAMPLE".

F-1

Description of sample ladder programs

Samp01.ldr
Sequential turning ON of relays
Applicable models : All KV Series models (KV-10 is used in the program.)
Description

: When the power switch is turned on, indicators are turned ON

one by one.

Samp02.ldr
Automatic flashing of indicators
Applicable models : All KV Series models (KV-10 is used in the program.)
Description

: When the program is executed, indicators automatically flash.

The flash speed can be set using an analog trimmer built into
the KV unit.

Samp03.ldr
Perfect emergency stop circuit
Applicable models : All KV Series models (KV-10 is used in the program.)
Description

: Offers an emergency stop circuit using MC and MCR instruc-

tions.

Samp04.ldr
Calculation of analog input mean value in KV-AD4
Applicable models : KV Series (except KV-300) and KV-AD4 (KV-10 is used in the

program.)

Description

: Obtains the mean value of analog input values received by the

KV-AD4.

Samp05.ldr
Controlling cylinder
Applicable models : All KV Series (KV-10 is used in the program.)
Description

: The cylinder starts moving when the work piece arrives. It

returns when it reaches to the end of stroke.

Samp06.ldr
Direct clock pulse
Applicable models : All KV Series (KV-10 is used in the program.)
Description

: The basic usage of high-speed counters.

Samp07.ldr
Ramp-up/down program
Applicable models : All KV Series (KV-10 is used in the program.)
Description

: The program is used to control the stepper motor motion and

position. The motor slowly starts rotating and maintains when it
reaches at the specified frequency. It stops gradually in a
specified duration.

Samp08.ldr
High-speed input
Applicable models : All KV Series (KV-10 is used in the program.)
Description

: Using HSP instruction, a fast input signal can be detected

stably and retained until reset.

KVSKA Appendix.P65

08.3.11, 11:26 AM

178