AND DIF n OR DIF n

Chapter 5 Instruction Specifications

Item number

Basic instructions-8

Name

Leading edge detection (AND DIF, OR DIF)

 

 

 

 

 

 

 

Ladder format

Condition code

Processing time (s)

Remark

 

DIF n

DIF n

 

R7F4

R7F3

R7F2

R7F1

R7F0

Average

Maximum

 

 

DIF n

DIF n

 

 

DER

ERR

SD

V

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

z

z

z

 

z

 

 

 

 

 

Instruction format

 

 

 

Number of steps

 

 

1.0

 

 

 

AND DIF n

 

 

 

Condition

 

Steps

 

 

 

 

 

 

OR

DIF n

 

 

AND DIF n

 

3

 

 

 

 

 

 

 

 

 

 

 

 

OR DIF n

 

4

 

 

 

 

 

 

 

 

 

 

 

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

Number

 

 

 

 

 

 

 

 

 

 

 

{ 0 to 511 (Decimal)

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

Detects the rise of an input signal and retains the operation result only for one scan. ( ) indicates the display when the Ladder Editor is used.

Notes

DIF number may not be overlapped. (However, no error is generated even if overlapped numbers are used.)

DIF cannot use the b contact.

Program example

X00000

DIF0

R123

LD

X00000

 

 

 

AND DIF0

OUT R123

Program description

Time chart

X00000

R123

1 scan time

Upon leading of X00000 on, R123 turns on only for one scan.

If b-contact is used for X00000, operation will be the same as the a-contact DFN operation.

5-18

Page 68
Image 68
Hitachi NJI-350B manual Basic instructions-8, Leading edge detection and DIF, or DIF, DIF n, Number To 511 Decimal