beautypg.com

3 basic instructions – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 168

background image

3 Basic Instructions

DVP-PLC Application Manual

3-14

Program Example:

Ladder diagram:

Instruction code:

Operation:

LD X0 Loading in A contact of X0
PLS

M0

M0 rising-edge output

LD M0 Loading in contact A of M0

X0

M0

PLS

M0

Y0

SET

Timing Diagram:

X0

M0

Y0

1 scan time

SET Y0

Y0 latched (On)

Mnemonic Function Program

steps

PLF

Falling-edge output

1

Controllers

ES

EX

SS

SA

SX

SC

EH

SV

X0 ~ X377

Y0 ~ Y377 M0 ~ M4095 S0 ~ S1023

T0 ~ T255

C0 ~ C255 D0 ~ D9999

Operand

-

9

9

-

-

-

-

Explanations:

When X0 goes from On to Off (falling-edge trigger), PLF instruction will be executed and S will send out pulses for

once of 1 scan time.

Program Example:

Ladder diagram:

Instruction code:

Operation:

LD

X0

Loading in A contact of X0

PLF

M0

M0 falling-edge output

LD

M0

Loading in contact A of M0

X0

M0

PLF

M0

Y0

SET

Timing Diagram:

1 scan time

X0

M0

Y0

SET Y0

Y0

latched

(On)

Mnemonic Function

Program

steps

END

Program End

1

Controllers

ES

EX

SS

SA

SX

SC

EH

SV

Operand

N/A

Explanations: