Item number
Basic instructions-8
Ladder format
DIF n
DIF n
DIF n
DIF n
Instruction format
AND DIF n
OR DIF n
Usable I/O
n
Number
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
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.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
AND DIF n
OR DIF n
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
R123
5-18
Chapter 5 Instruction Specifications
Leading edge detection (AND DIF, OR DIF)
Processing time (µs)
R7F1
R7F0
Average
Maximum
V
C
1.0
Steps
3
4
Word
Double word
WR,
DR,
WM TC DX DY
DM
LD
X00000
AND
DIF0
OUT
R123
Remark
←
Other
0 to 511 (Decimal)