Omron SYSMAC CP Series Instruction & Reference Manual page 83

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

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).
Instruction
MILH(517)
MULTI-INTERLOCK DIFFER-
ENTIATION HOLD
MILR(518)
MULTI-INTERLOCK DIFFER-
ENTIATION RELEASE
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.)
0.00
MILH
0
1. When CIO 0.00 is OFF (interlock starts), the DIFU
,
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.
0.01
DIFU
W0.0
MILC
0
CP1E CPU Unit Instructions Reference Manual(W483)
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.)
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.
,
s CIO 0.01 input condition is OFF.
Operation of Differentiated Instructions
Timing chart
Not interlocked
Interlocked
ON
0.00
OFF
Status (OFF) at
start of interlock
ON
0.01
OFF
OFF
MILH(517) interlock
ON
W0.0
OFF
2 Instructions
Not interlocked
ON
Differentiation condition established
Status (ON) when
interlock is cleared
DIFU(013) is executed.
1 cycle
2-47
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents