Chapter 5 Instruction Specifications

Item number

Basic instructions-3, 4

Name

Contact serial connection (AND, ANI)

 

 

 

 

 

 

 

Ladder format

Condition code

Processing time (s)

Remark

 

n

 

R7F4

R7F3

R7F2

R7F1

R7F0

Average

Maximum

 

 

n

 

DER

ERR

SD

V

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

z

z

z

 

z

 

 

 

 

 

Instruction format

 

 

Number of steps

 

 

0.8

 

 

 

AND

n

 

Condition

 

Steps

 

 

 

 

 

 

ANI

n

 

 

 

1

 

 

 

 

 

 

 

 

 

 

Bit

 

 

Word

 

 

Double word

Constant

 

 

Usable I/O

 

 

R,

TD, SS,

 

WR,

 

 

DR,

Other

 

X

Y

M

CU, CT

WX WY WM

TC

DX DY

DM

n

I/O number

{

{

{

{

 

 

 

 

 

 

 

 

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

n

 

 

 

 

 

 

 

 

 

 

 

 

Obtains AND of the previous operation result and the a-contact operation.

AND n

n

Obtains AND of the previous operation result and the b-contact operation.

ANI n

Notes

Edge detection (DIF, DFN) cannot be used in respect to ANI.

Pay close attention if the external output is to be monitored when counter input (coincidence output), PWM output, or pulse output is set with the PI/O function.

R0 Y100 DIF1

WR0 = WR0 + 1

Y100 will not change when monitored. It will remain the same value previously set using functions such as set/reset.

For example, if Y100 is off, the Y100 status will not change while being monitored and WRO will also remain unchanged.

AND n ANI n

Program example

X00002

R010

Y00100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X00003

R011

Y00101

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LD X00002 AND R010 OUT Y00100

LD X00003

ANI R011 OUT Y00101

Program description

When input X00002 and R010 are both on, output Y00100 is on and all others are off.

When input X00003 is on and R011 is off, output Y00101 is on and all others are off.

5-15

Page 65
Image 65
Hitachi NJI-350B manual Basic instructions-3, Contact serial connection AND, ANI, Ani