Sequence Output Instructions
Flags
Precautions
Examples
0.00
0.00
DIFU(013) and DIFD(014) have immediate refreshing variations (!DIFU(013)
and !DIFD(014)). When an external output bit has been specified for B in one
of these instructions, any changes to B will be refreshed when the instruction
is executed and reflected immediately in the output bit for the CPU Unit built-in
output.
UP(521) and DOWN(522) can be used to execute an instruction for just one
cycle when the execution condition goes from OFF
Refer to 3-2-13 CONDITION ON/OFF: UP(521) and DOWN(522) for details.
No flags are affected by DIFU(013) and DIFD(014).
The operation of DIFU(013) or DIFD(014) depends on the execution condition
for the instruction itself as well as the execution condition for the program sec-
tion when it is programmed in an interlocked program section, a jumped pro-
gram section, or a subroutine. Refer to 3-4-4 INTERLOCK and INTERLOCK
CLEAR: IL(002) and ILC(003), 3-4-6 JUMP and JUMP END: JMP(004) and
JME(005), and 3-19 Interrupt Control Instructions for details.
If DIFU(013) is used in a FOR-NEXT loop and the loop repeats in a cycle, the
controlled bit will be always ON or always OFF within that loop.
Operation of DIFU(013)
When CIO 0.00 goes from OFF to ON in the following example, CIO 100.00 is
turned ON for one cycle.
100.00
0.00
100.00
Operation of DIFD(014)
When CIO 0.00 goes from ON to OFF in the following example, CIO 100.00 is
turned ON for one cycle.
100.00
0.00
100.00
1 cycle
1 cycle
1 cycle
Section 3-3
ON or ON
OFF.
1 cycle
121
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers