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


 
2-47
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Control Instructions
2
MILH/MILR/MILC
Differences between MILH(517) and MILR(518)
Differentiated instructions (DIFU, DIFD, or instructions with a @ or % prefix) operate differently in inter-
locks created with MILH(517) and MILR(518).
When a program section is interlocked with MILR(518), a differentiated instruction will not be executed
when the interlock is cleared even if the differentiation condition was activated during the interlock
(comparing the status of the execution condition when the interlock started to its status when the inter-
lock was cleared).
When a program section is interlocked with MILH(517), a differentiated instruction will be executed
when the interlock is cleared if the differentiation condition was activated during the interlock (compar-
ing the status of the execution condition when the interlock started to its status when the interlock was
cleared).
Operation of Differentiated Instructions in an MILH(517) Interlock
If there is a differentiated instruction (DIFU, DIFD, or instruction with a @ or % prefix) between
MILH(517) and the corresponding MILC(519), that instruction will be executed after the interlock is
cleared if the differentiation condition of the instruction was established.
In the same way, a differentiated instruction will be executed if its execution condition is established at
the same time that the interlock is started or cleared.
Many other conditions in the program may cause the differentiation condition to be reset even if it was
established during the interlock. In this case, the differentiation instruction will not be executed when the
interlock is cleared.
Example
When a DIFFERENTIATE UP (DIFU(013)) instruction is being used and the input condition is OFF
when the interlock starts and ON when the interlock is cleared, DIFU(013) will be executed when the
interlock is cleared. (Differentiated instructions operate the same in the MILH(517) interlock as they
would in an IL(002) interlock.)
Instruction Operation of Differentiated Instructions
MILH(517)
MULTI-INTERLOCK DIFFER-
ENTIATION HOLD
A differentiated instruction (DIFU, DIFD, or instruction with a @ or % prefix) will
be executed after the interlock is cleared if the differentiation condition of the
instruction was established while the instruction was interlocked. (The status of
the execution condition when the interlock started is compared to its status when
the interlock was cleared.)
MILR(518)
MULTI-INTERLOCK DIFFER-
ENTIATION RELEASE
A differentiated instruction (DIFU, DIFD, or instruction with a @ or % prefix) will
not be executed after the interlock is cleared even if the differentiation condition
of the instruction was established while the instruction was interlocked.
Timing chart
MILH
0
MILC
0
DIFU
W0.0
0.00
0.01
1. When CIO 0.00 is OFF (interlock starts), the DIFU
,
s CIO 0.01 input condition is OFF.
2. The DIFU
,
s CIO 0.01 input condition goes from OFF to ON while CIO 0.00 is OFF (DIFU interlocked),
3. When CIO 0.00 goes from OFF to ON (interlock cleared), DIFU is executed if CIO 0.01 is still ON.
ON
0.00
0.01
W0.0
OFF
OFF
ON
ON
OFF
ON
OFF
1 cycle
DIFU(013) is executed.
MILH(517) interlock
Not interlocked Interlocked Not interlocked
Status (OFF) at
start of interlock
Differentiation condition established
Status (ON) when
interlock is cleared