EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 154

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
121
Sequence Output Instructions Section 3-3
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
ON or ON OFF.
Refer to 3-2-13 CONDITION ON/OFF: UP(521) and DOWN(522) for details.
Flags No flags are affected by DIFU(013) and DIFD(014).
Precautions 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.
Examples 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.
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
0.00
1 c
y
cle 1 c
y
cle
100.00
100.00
0.00
0.00
1 cycle 1 cycle

Table of Contents

Related product manuals