Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-27
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Output Instructions
2
DIFD
DIFD
Applicable Program Areas
Operands
Operand Specifications
Flags
No flags are affected by DIFD(014).
Function
Hint
Instruction Mnemonic Variations
Function
code
Function
DIFFERENTIATE DOWN DIFD !DIFD 014
DIFD(014) turns the designated bit ON for one
cycle when the execution condition goes from ON
to OFF (falling edge).
Symbol
DIFD
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
RBit BOOL ---
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
B OK OK OK OK --- --- --- --- --- --- --- --- ---
When the execution condition goes from ON
to OFF, DIFD(014) turns R ON. When
DIFD(014) is reached in the next cycle, R is
turned OFF.
DOWN(522) can be used to execute an instruction for just one cycle when the execution condi-
tion goes from ON OFF.
The operation of DIFD(014) depends on the execution condition for the instruction itself as well
as the execution condition for the program section when it is programmed in an interlocked pro-
gram section, a jumped program section, or a subroutine.
DIFD(014) has immediate refreshing variation (!DIFD(014)). When a CPU Unit built-in output bit
has been specified for R in this instruction, any changes to R will be refreshed when the instruc-
tion is executed and reflected immediately in the output bit.
DIFD(014)
R
R: Bit
Status of R
1 cycle
Execution condition