3. Instructions
168
CS/CJ/NSJ Series Instructions Reference Manual (W474)
DIFD
Applicable Program Areas
Operands
z Operand Specifications
*1 CJ2 CPU Units only.
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
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK Not allowed OK OK OK OK
Operand Description Data type Size
BBit BOOL ---
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
B OKOKOKOK--- ---
OK*
1
OK*
1
--- --- --- --- --- OK --- --- --- ---
When the execution condition goes from ON
to OFF, DIFD(014) turns B ON. When
DIFD(014) is reached in the next cycle, B is
turned OFF.
• DOWN(522) can be used to execute an instruction for just one cycle when the execution condition
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 program section,
a jumped program section, or a subroutine.
• DIFD(014) has immediate refreshing variation (!DIFD(014)). When an external output bit has been
specified for B in this instruction, any changes to B will be refreshed when the instruction is executed
and reflected immediately in the output bit. (The changes will not be reflected immediately if the bit is
allocated to a Group-2 High-density I/O Unit, High-density Special I/O Unit, or a Unit mounted in a
SYSMAC BUS Remote I/O Slave Rack.)
DIFD(014)
B
B: Bit
Status of B
1 cycle
Execution condition