beautypg.com

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

Page 158

background image

3 Basic Instructions

DVP-PLC Application Manual

3-4

series connection contacts and perform the “AND” operation with the logical operation result obtained. The final result

will be store in the accumulative register.

Program Example:

Ladder diagram:

Instruction code:

Operation:

LDI

X1

Loading in contact B of X1

AND

X0

Connecting to contact A of X0 in series

X0

X1

Y1

OUT

Y1

Driving Y1 coil

Mnemonic Function Program

steps

ANI

Series connection- B contact

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

9

9

9

9

-

Explanations:

The ANI instruction is used in the series connection of B contact. The functions are to read out the status of present

designated series connection contacts and perform the “AND” operation with the logical operation result obtained.

The final result will be store in the accumulative register.

Program Example:

Ladder diagram:

Instruction code:

Operation:

LD

X1

Loading in contact A of X1

ANI

X0

Connecting to contact B of X0 in series

X0

X1

Y1

OUT

Y1

Driving Y1 coil

Mnemonic Function Program

steps

OR

Parallel connection- A contact

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

9

9

9

9

-

Explanations:

The OR instruction is used in the parallel connection of A contact. The functions are to read out the status of present

designated parallel connection contacts and perform the “OR” operation with the logical operation result obtained.

The final result will be store in the accumulative register.

Program Example:

Ladder diagram:

Instruction code:

Operation:

LD

X0

Loading in contact A of X0

OR

X1

Connecting to contact A of X1 in parallel

X0

X1

Y1

OUT

Y1

Driving Y1 coil